Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / warn / sentinel.C
blob5f718f83047c249b0717319d701e77d5c70c3517
1 /* { dg-do compile } */
2 /* { dg-options "-Wall" } */
3 extern void ex (int i, ...) __attribute__ ((__sentinel__(0)));
5 void f()
7   ex (1, 0);            /* { dg-warning "missing sentinel in function call" "" } */
8   ex (1, 0L);           /* { dg-warning "missing sentinel in function call" "" } */
9   ex (1, (void *)0);
10   ex (1, __null);       /* { dg-bogus "sentinel" } */