summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noreturn-5.c
blob: e69087a4d74fb4a2c2d04c4ca4e2e1d53d59c4b6 (plain)
1
2
3
4
5
6
7
8
/* { 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;