]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/attr-noreturn.c
1 /* Verify that attribute noreturn on global and local function declarations
4 { dg-options "-Wall -fdump-tree-optimized" } */
8 int fnr_local_local (void)
10 __attribute__ ((noreturn
)) void fnr1 (void);
17 int gnr_local_local (void)
27 int fnr_local_global (void)
29 __attribute__ ((noreturn
)) void fnr2 (void);
38 int gnr_local_global (void)
46 __attribute__ ((noreturn
)) void fnr3 (void);
48 int fnr_global_local (void)
55 int gnr_global_local (void)
64 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */