| 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 |
} |