blob: 168d012a3f00aa7044ba3e60bcce2e9a7ba042aa [file] [log] [blame]
/* Test C11 _Noreturn. Test _Noreturn on main, hosted. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors -fhosted" } */
_Noreturn void exit (int);
_Noreturn int
main (void) /* { dg-error "'main' declared '_Noreturn'" } */
{
exit (0);
}