blob: ce41cabfa5151f83948f6122866abe7bd17ecd6b [file] [log] [blame]
/* { dg-do run { target { nonpic || pie_enabled } } } */
/* { dg-options "-O2" } */
void exit (int);
void noreturn_autodetection_failed ();
__attribute__ ((noinline)) int
detect_noreturn ()
{
exit (0);
}
int
main (void)
{
detect_noreturn ();
noreturn_autodetection_failed ();
return 0;
}