Lines Matching full:warning
46 static int y = 0; // expected-warning{{unused variable 'y'}}
52 // We expect a warning in the definition only for non-dependent variables, and
53 // a warning in the instantiation only for dependent variables.
57 int a; // expected-warning {{unused variable 'a'}}
58 T b; // expected-warning 2{{unused variable 'b'}}
64 int a; // expected-warning {{unused variable 'a'}}
65 T b; // expected-warning 2{{unused variable 'b'}}
83 S1 x = makeS1(); // expected-warning {{unused variable 'x'}}
85 // This one cannot, so no warning.
89 S1 z = a; // expected-warning {{unused variable 'z'}}
101 S2 x = makeS2(); // expected-warning {{unused variable 'x'}}
103 S2 z = a; // expected-warning {{unused variable 'z'}}
112 S3 x = makeS3(); // expected-warning {{unused variable 'x'}}
114 S3 z = a; // expected-warning {{unused variable 'z'}}
119 template<typename T> int n = 0; // no warning
122 template<typename T> const int l = 0; // no warning
126 template<typename T> const int o = 0; // no warning
127 template<typename T> const int o<T*> = 0; // no warning
130 template<> int o<void> = 0; // no warning
137 template<> const int m<void> = 0; // expected-warning {{unused variable}}