* gcc.dg/c99-main-1.c: New test.
From-SVN: r35299
This commit is contained in:
parent
c00fb68324
commit
c1445f3dec
@ -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.
|
||||
|
9
gcc/testsuite/gcc.dg/c99-main-1.c
Normal file
9
gcc/testsuite/gcc.dg/c99-main-1.c
Normal 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" } */
|
Loading…
Reference in New Issue
Block a user