1 /* { dg-additional-options "-Wno-analyzer-too-complex" } */
3 #define NULL ((void *)0)
5 void test_sentinel (int arg
, ...)
9 __builtin_va_start (ap
, arg
);
10 while (s
= __builtin_va_arg (ap
, char *)) /* { dg-warning "'ap' has no more arguments \\(2 consumed\\)" } */
14 __builtin_va_end (ap
);
17 void test_caller (void)
19 test_sentinel (42, "foo", "bar", NULL
);
22 void missing_sentinel (void)
24 test_sentinel (42, "foo", "bar");