Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
noeffect6.C
blob: ca6baba812212e0da9e53ec9a8b23250544697df [
file
] [
log
] [
blame
]
// { dg-options "-Wall" }
// PR c++/15083
extern
"C"
int
printf
(
const
char
*,...);
struct
Counter
{
Counter
(){
printf
(
"Hello World.\n"
);}
};
template
<
typename
T
>
void
resetData
()
{
new
Counter
();
}
int
main
()
{
resetData
<int>
();
}