gcc/testsuite/gcc.dg/c99-main-1.c
raw| 1 | /* Test for implicit return 0 from main in C99. */ |
| 2 | /* Origin: Joseph Myers <[email protected]> */ |
| 3 | /* { dg-do run } */ |
| 4 | /* { dg-options "-std=iso9899:1999 -pedantic-errors -Wreturn-type -O -fhosted" } */ |
| 5 | |
| 6 | int |
| 7 | main (void) |
| 8 | { |
| 9 | } /* { dg-bogus "control reaches end" "missing implicit return" } */ |