2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-noreturn-3.c
blob168d012a3f00aa7044ba3e60bcce2e9a7ba042aa
1 /* Test C11 _Noreturn. Test _Noreturn on main, hosted. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic-errors -fhosted" } */
5 _Noreturn void exit (int);
7 _Noreturn int
8 main (void) /* { dg-error "'main' declared '_Noreturn'" } */
10 exit (0);