OSDN Git Service

2009-09-01 Diego Novillo <dnovillo@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / noeffect6.C
1 // { dg-options "-Wall" }
2 // PR c++/15083
3
4 extern "C" int printf(const char*,...);
5 struct Counter {
6   Counter(){printf("Hello World.\n");}
7 };
8 template< typename T >
9 void resetData() {
10   new Counter();
11 }
12 int main() {
13   resetData<int>();
14