* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / noreturn-4.c
blob4a2de5f42008ae635c6dd34b368e77e5a8dd84cc
1 /* Check for "noreturn" warning in main. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wmissing-noreturn -ffreestanding" } */
4 extern void exit (int) __attribute__ ((__noreturn__));
6 int
7 main (void)
9 exit (0);
10 } /* { dg-warning "warning: function might be possible candidate for attribute `noreturn'" "warn for main" } */