2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-main-1.c
blobfdef9fd36a85bf4cd159fbe939e9baa4c3304344
1 /* Test for implicit return 0 from main in C99. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do run } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors -Wreturn-type -O -fhosted" } */
6 int
7 main (void)
9 } /* { dg-bogus "control reaches end" "missing implicit return" } */