Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/noreturn-8.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* { dg-do run { target nonpic } } */ |
2 /* { dg-options "-O2" } */ | |
3 void exit (int); | |
4 void noreturn_autodetection_failed (); | |
5 __attribute__ ((noinline)) int | |
6 detect_noreturn () | |
7 { | |
8 exit (0); | |
9 } | |
10 int | |
11 main (void) | |
12 { | |
13 detect_noreturn (); | |
14 noreturn_autodetection_failed (); | |
15 return 0; | |
16 } |