1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 void f(int, ...) __attribute__((sentinel
));
9 typedef __typeof__(sizeof(int)) size_t;
12 S(int,...) __attribute__((sentinel
)); // expected-note {{marked sentinel}}
13 void a(int,...) __attribute__((sentinel
)); // expected-note {{marked sentinel}}
14 void* operator new(size_t,...) __attribute__((sentinel
)); // expected-note {{marked sentinel}}
15 void operator()(int,...) __attribute__((sentinel
)); // expected-note {{marked sentinel}}
19 S
s(1,2,3); // expected-warning {{missing sentinel in function call}}
20 S
* s2
= new (1,2,3) S(1, __null
); // expected-warning {{missing sentinel in function call}}
21 s2
->a(1,2,3); // expected-warning {{missing sentinel in function call}}
22 s(1,2,3); // expected-warning {{missing sentinel in function call}}