diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-08 14:50:37 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-08 14:50:37 +0000 |
commit | 24f0c99280b3d36499b7d5ed0cc93d9a0da89782 (patch) | |
tree | 6c98b3be03827e9575c8d91dbae2c7db990c42e6 /gcc/testsuite/gcc.dg/20041213-1.c | |
parent | 545ea93960147835726d1de12285962715203864 (diff) | |
download | gcc-24f0c99280b3d36499b7d5ed0cc93d9a0da89782.tar.gz |
2007-07-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR testsuite/25241
testsuite/
* gcc.dg/20041213-1.c: Don't use default -pedantic-errors to allow
discern pedantic diagnostics and errors.
* gcc.dg/empty2.c: Add -pedantic, so it actually produces a warning
and not an error.
* gcc.dg/20050121-1.c: This is an error and not a warning.
* gcc.target/i386/sseregparm-2.c: Likewise.
* gcc.target/i386/20060512-4.c: This is a warning and not an error.
* gcc.dg/charset/attribute2.c: Likewise.
* gcc.dg/bitfld-1.c: Likewise.
* gcc.dg/pack-test-2.c: Likewise.
* gcc.dg/940510-1.c: Match separately error and warning.
* gcc.dg/array-2.c: Match separately multiple messages. The second
diagnostic is a pedantic warning and not an error.
* gcc.dg/pr14475.c: Match separately multiple messages.
* gcc.dg/pr18809-1.c: Likewise.
* gcc.dg/pr27953.c: Likewise.
* gcc.dg/vla-init-1.c: Likewise.
* gcc.dg/redecl-1.c: Fix wrong use of dg-error and dg-warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20041213-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20041213-1.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/testsuite/gcc.dg/20041213-1.c b/gcc/testsuite/gcc.dg/20041213-1.c index 99027371447..f7ef30a62f9 100644 --- a/gcc/testsuite/gcc.dg/20041213-1.c +++ b/gcc/testsuite/gcc.dg/20041213-1.c @@ -1,28 +1,29 @@ /* { dg-do compile } */ +/* { dg-options "" } */ /* test redeclarations with void and implicit int */ -extern foo1(); /* { dg-error "error: previous declaration" } */ -extern void foo1(); /* { dg-error "error: conflicting types" } */ +extern foo1(); /* { dg-error "previous declaration" } */ +extern void foo1(); /* { dg-error "conflicting types" } */ -extern void foo2(); /* { dg-error "error: previous declaration" } */ -extern foo2(); /* { dg-error "error: conflicting types" } */ +extern void foo2(); /* { dg-error "previous declaration" } */ +extern foo2(); /* { dg-error "conflicting types" } */ -void foo3() {} /* { dg-error "error: previous definition" } */ -extern foo3(); /* { dg-error "error: conflicting types" } */ +void foo3() {} /* { dg-error "previous definition" } */ +extern foo3(); /* { dg-error "conflicting types" } */ -extern foo4(); /* { dg-error "error: previous declaration" } */ -void foo4() {} /* { dg-error "error: conflicting types" } */ +extern foo4(); /* { dg-error "previous declaration" } */ +void foo4() {} /* { dg-error "conflicting types" } */ extern void foo5(); /* { dg-warning "previous declaration" } */ foo5() {} /* { dg-warning "conflicting types" } */ -foo6() {} /* { dg-error "error: previous definition" } */ -extern void foo6(); /* { dg-error "error: conflicting types" } */ +foo6() {} /* { dg-error "previous definition" } */ +extern void foo6(); /* { dg-error "conflicting types" } */ -foo7() {} /* { dg-error "error: previous definition" } */ -void foo7() {} /* { dg-error "error: conflicting types" } */ +foo7() {} /* { dg-error "previous definition" } */ +void foo7() {} /* { dg-error "conflicting types" } */ -void foo8() {} /* { dg-error "error: previous definition" } */ -foo8() {} /* { dg-error "error: conflicting types" } */ +void foo8() {} /* { dg-error "previous definition" } */ +foo8() {} /* { dg-error "conflicting types" } */ int use9() { foo9(); } /* { dg-warning "previous implicit declaration" } */ extern void foo9(); /* { dg-warning "conflicting types" } */ |