rt_gccstream/gcc/testsuite/gcc.dg/noreturn-5.c

9 lines
318 B
C

/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
/* Check that 'noreturn' and 'volatile extern' are compatible.
The testsuite uses -ansi -pedantic-errors by default, so this has
to override. */
extern void xxx (int) __attribute__((noreturn));
typedef void voidfn (int);
__volatile extern voidfn xxx;