summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-main-1.c
blob: fdef9fd36a85bf4cd159fbe939e9baa4c3304344 (plain)
1
2
3
4
5
6
7
8
9
/* Test for implicit return 0 from main in C99.  */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do run } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors -Wreturn-type -O -fhosted" } */

int
main (void)
{
} /* { dg-bogus "control reaches end" "missing implicit return" } */