1 // RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs
2 // RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++98
3 // RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=non-pod-varargs -std=c++11
5 #if __cplusplus > 199711L
6 // expected-no-diagnostics
19 - (void)g:(int)a, ...;
27 #if __cplusplus <= 199711L // C++03 or earlier modes
28 // expected-warning@-2{{cannot pass object of non-POD type 'C' through variadic method; call will abort at runtime}}
38 void t3(D *d, id<P> p)