Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51644.c
blobe23c02f9fd6aed6bb13c61ca0955182254992c3b
1 /* PR middle-end/51644 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -fexceptions" } */
4 /* { dg-require-effective-target exceptions } */
6 #include <stdarg.h>
8 extern void baz (int, va_list) __attribute__ ((__noreturn__));
10 __attribute__ ((__noreturn__))
11 void
12 foo (int s, ...)
14 va_list ap;
15 va_start (ap, s);
16 baz (s, ap);
17 va_end (ap);
18 } /* { dg-bogus "function does return" } */
20 __attribute__ ((__noreturn__))
21 void
22 bar (int s, ...)
24 va_list ap1;
25 va_start (ap1, s);
27 va_list ap2;
28 va_start (ap2, s);
29 baz (s, ap1);
30 baz (s, ap2);
31 va_end (ap2);
33 va_end (ap1);
34 } /* { dg-bogus "function does return" } */