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