Lines Matching +full:- +full:wno +full:- +full:error
1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s -Wno-error=non-pod-varargs
2 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++98 %s -Wno-error=non-pod-varargs
3 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 %s -Wno-error=non-pod-varargs
5 // Check that the warning is still there under -fms-compatibility.
6 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s -Wno-error=non-pod-varargs -fms-compatibility
7 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++98 %s -Wno-error=non-pod-varargs -fms-com…
8 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 %s -Wno-error=non-pod-varargs -fms-com…
27 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in t1()
35 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in t1()
47 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic method; call will… in t2()
55 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic method; call will… in t2()
62 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in t2()
70 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in t2()
84 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic block; call will … in t3()
103 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic method; call will… in t4()
110 E(int, ...); // expected-note 2{{implicitly declared private here}}
119 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic constructor; call… in t5()
121 // expected-error@-4 {{calling a private constructor of class 'E'}} in t5()
124 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic constructor; call… in t5()
126 // expected-error@-4 {{calling a private constructor of class 'E'}} in t5()
130 // PR5761: unevaluated operands and the non-POD warning
150 …// expected-warning@-2 {{cannot pass object of non-POD type 'Base' through variadic function; call… in test_typeid()
152 …// expected-warning@-4 {{cannot pass object of non-trivial type 'Base' through variadic function; … in test_typeid()
154 …// expected-warning@-6 {{expression with side effects will be evaluated despite being used as an o… in test_typeid()
159 // rdar://7985267 - Shouldn't warn, doesn't actually use __builtin_va_start is
170 …(void)__builtin_va_arg(list, C); // expected-warning{{second argument to 'va_arg' is of non-POD ty… in t7()
175 virtual void doit() = 0; // expected-note{{unimplemented pure virtual method}}
181 …(void)__builtin_va_arg(list, Abstract); // expected-error{{second argument to 'va_arg' is of abstr… in t8()
186 // Make sure the error works in potentially-evaluated sizeof in t9()
189 …// expected-warning@-2 {{cannot pass object of non-POD type 'Foo' through variadic function; call … in t9()
229 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in test()
235 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic method; call will… in test()
241 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic block; call will … in test()
248 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic function; call wi… in test()
255 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic method; call will… in test()
262 …// expected-warning@-2 {{cannot pass object of non-POD type 'C' through variadic block; call will … in test()