Lines Matching +full:unused +full:- +full:variable
1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label -Wno-c++1y-extensions -verify %s
46 static int y = 0; // expected-warning{{unused variable 'y'}} in unused_local_static()
47 #pragma unused(x) in unused_local_static()
52 // We expect a warning in the definition only for non-dependent variables, and
57 int a; // expected-warning {{unused variable 'a'}} in f()
58 T b; // expected-warning 2{{unused variable 'b'}} in f()
64 int a; // expected-warning {{unused variable 'a'}} in f()
65 T b; // expected-warning 2{{unused variable 'b'}} in f()
69 S<int>().f(); // expected-note {{here}} in g()
70 S<char>().f(); // expected-note {{here}} in g()
71 f<int>(); // expected-note {{here}} in g()
72 f<char>(); // expected-note {{here}} in g()
83 S1 x = makeS1(); // expected-warning {{unused variable 'x'}} in testS1()
89 S1 z = a; // expected-warning {{unused variable 'z'}} in testS1()
101 S2 x = makeS2(); // expected-warning {{unused variable 'x'}} in testS2()
103 S2 z = a; // expected-warning {{unused variable 'z'}} in testS2()
112 S3 x = makeS3(); // expected-warning {{unused variable 'x'}} in testS3()
114 S3 z = a; // expected-warning {{unused variable 'z'}} in testS3()
137 template<> const int m<void> = 0; // expected-warning {{unused variable}}
152 #include "Inputs/warn-unused-variables.h"