1 /* PR middle-end/pr42363, extended from the test for PR middle-end/37913. */
2 /* { dg-do compile } */
3 /* { dg-options "-g" } */
5 void foo (void) __attribute__ ((noreturn
));
7 static int __attribute__ ((noreturn
))
20 int fooz (void) __attribute__ ((noreturn
));
22 static int __attribute__ ((noreturn
))
25 return fooz (); /* { dg-warning "noreturn" } */
49 /* This might be regarded as pure and folded, rather than inlined.
51 static int __attribute__ ((pure
, const, noreturn
))
54 } /* { dg-warning "does return" } */
56 static int __attribute__ ((pure
, const))
66 i
= j
= bark () + bark ();
75 i
= j
= barf () + barf ();