summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/noeffect6.C
blob: ca6baba812212e0da9e53ec9a8b23250544697df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { 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>();
}