1 // RUN: %clang_cc1 -fsyntax-only -Wunused -verify %s 2 3 struct X0 { 4 ~X0(); 5 }; 6 7 struct X1 { }; 8 9 template<typename T> f()10void f() { 11 X0 x0; 12 X1 x1; // expected-warning{{unused variable 'x1'}} 13 } 14 15 template<typename T, typename U> g()16void g() { 17 T t; 18 U u; // expected-warning{{unused variable 'u'}} 19 } 20 21 template void g<X0, X1>(); // expected-note{{in instantiation of}} 22