Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / warn / noeffect7.C
blob4aca2496c5eebf07320197789c8839894250515e
1 // PR c++/8057
2 // Don't give a "statement has no effect" warning when declaring a
3 // template, only when instantiating it.
4 // { dg-do compile }
5 // { dg-options "-Wunused" }
6 struct Y { static int i; };
7 template <typename T> class X { X() { Y::i; }; };
8 class Z { Z() { Y::i; }; }; // { dg-warning "no effect" }