Anders Carlsson | 906fed0 | 2009-01-13 05:48:52 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | class C { | ||||
4 | public: | ||||
5 | C(int); | ||||
6 | }; | ||||
7 | |||||
8 | @interface D | ||||
9 | - (void)g:(int)a, ...; | ||||
10 | @end | ||||
11 | |||||
12 | void t1(D *d) | ||||
13 | { | ||||
14 | C c(10); | ||||
15 | |||||
16 | [d g:10, c]; // expected-warning{{cannot pass object of non-POD type 'class C' through variadic method; call will abort at runtime}} | ||||
17 | } | ||||
18 |