FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / warn1.C
blob96ed14852260e17edd61139df1e7c3977104059a
1 // Build don't link:
2 // Special g++ 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;                      // WARNING - unused
17   }
19   S();
20   ~S();
23 void f()
25   S<int> si;
26   si.foo();