2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / warn1.C
blobde9e7bb40f27c7a21b93c80b076f9a3f10181a3e
1 // { dg-do assemble  }
2 // { dg-options "-Wunused" }
4 template <class T>
5 struct S
7   struct R 
8   {
9     R();
10     ~R();
11   };
13   void foo()
14   {
15     R r;                        // no warning
16     int i;                      // { dg-warning "" } unused
17   }
19   S();
20   ~S();
23 void f()
25   S<int> si;
26   si.foo();