* gcc.dg/noncompile/redecl-1.c: New test.
From-SVN: r35122
This commit is contained in:
parent
79c282037d
commit
611a0be7ae
@ -1,3 +1,7 @@
|
||||
2000-07-18 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* gcc.dg/noncompile/redecl-1.c: New test.
|
||||
|
||||
2000-07-18 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20000717-5.c: New test.
|
||||
|
10
gcc/testsuite/gcc.dg/noncompile/redecl-1.c
Normal file
10
gcc/testsuite/gcc.dg/noncompile/redecl-1.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* Copyright 2000 Free Software Foundation */
|
||||
/* by Alexandre Oliva <aoliva@redhat.com> */
|
||||
|
||||
int
|
||||
foo ()
|
||||
{
|
||||
int bar; /* { dg-error "previous declaration" "previously declared" } */
|
||||
volatile int bar; /* { dg-error "redeclaration" "redeclaration" } */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user