Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr51644.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
/* PR middle-end/51644 */ /* { dg-do compile } */ /* { dg-options "-Wall -fexceptions" } */ #include <stdarg.h> extern void baz (int, va_list) __attribute__ ((__noreturn__)); __attribute__ ((__noreturn__)) void foo (int s, ...) { va_list ap; va_start (ap, s); baz (s, ap); va_end (ap); } /* { dg-bogus "function does return" } */ __attribute__ ((__noreturn__)) void bar (int s, ...) { va_list ap1; va_start (ap1, s); { va_list ap2; va_start (ap2, s); baz (s, ap1); baz (s, ap2); va_end (ap2); } va_end (ap1); } /* { dg-bogus "function does return" } */