vararg-non-pod.mm revision dce5e2cabf07ff25eb4d9e1859c0a21c69f588d2
1// RUN: clang -fsyntax-only -verify %s 2 3extern char version[]; 4 5class C { 6public: 7 C(int); 8}; 9 10@interface D 11- (void)g:(int)a, ...; 12@end 13 14void t1(D *d) 15{ 16 C c(10); 17 18 [d g:10, c]; // expected-warning{{cannot pass object of non-POD type 'class C' through variadic method; call will abort at runtime}} 19 [d g:10, version]; 20} 21 22