* fold-const.c (fold) [EQ_EXPR]: Place both integer and real
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-impl-int-1.c
blobdcc25203ae8b0ccb5fbbbcd008d964ffb2d24b1a
1 /* Test for implicit int: in C90 only. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6 extern foo; /* { dg-bogus "warning" "warning in place of error" } */
7 /* { dg-error "type defaults" "C99 implicit int error" { target *-*-* } 6 } */
8 bar (void) { } /* { dg-bogus "warning" "warning in place of error" } */
9 /* { dg-error "return type defaults" "C99 implicit int error" { target *-*-* } 8 } */