* gcc.dg/c99-main-1.c: New test.

From-SVN: r35299
This commit is contained in:
Joseph Myers 2000-07-27 13:49:25 -06:00 committed by Jeff Law
parent c00fb68324
commit c1445f3dec
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c99-main-1.c: New test.
2000-07-25 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c90-impl-int-2.c, gcc.dg/c99-impl-int-2.c: New tests.

View File

@ -0,0 +1,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" } */