diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-27 15:39:08 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-27 15:39:08 +0000 |
commit | b50beb8f969c9ae4ae125a2fc88565f65608f30f (patch) | |
tree | 2476d4458bdbbd2f74eafa85fd262a24f8221691 /gcc/testsuite/gcc.dg/c99-impl-int-2.c | |
parent | 67adb6656b6c4b099da78cf3fc589221987a0e95 (diff) | |
download | gcc-b50beb8f969c9ae4ae125a2fc88565f65608f30f.tar.gz |
* gcc.dg/c90-impl-int-2.c, gcc.dg/c99-impl-int-2.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35291 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c99-impl-int-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-impl-int-2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c99-impl-int-2.c b/gcc/testsuite/gcc.dg/c99-impl-int-2.c new file mode 100644 index 00000000000..e9e974767d4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/c99-impl-int-2.c @@ -0,0 +1,9 @@ +/* Test for implicit int: in C90 only. Function parameters in old-style + function definition. +*/ +/* Origin: Joseph Myers <jsm28@cam.ac.uk> */ +/* { dg-do compile } */ +/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ + +void foo (a) { } /* { dg-bogus "warning" "warning in place of error" } */ +/* { dg-error "defaults" "C99 implicit int parameter error" { target *-*-* } 8 } */ |