Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/noreturn-8.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 1 /* { dg-do run { target { nonpic || pie_enabled } } } */ |
111 | 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 } |