Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / stdarg-sentinel-1.c
blobf8c1f0eb0f82b7205e61eab72dd6ca34a9b30708
1 /* { dg-additional-options "-Wno-analyzer-too-complex" } */
3 #define NULL ((void *)0)
5 void test_sentinel (int arg, ...)
7 const char *s;
8 __builtin_va_list ap;
9 __builtin_va_start (ap, arg);
10 while (s = __builtin_va_arg (ap, char *)) /* { dg-warning "'ap' has no more arguments \\(2 consumed\\)" } */
12 (void)s;
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");