* gcc.dg/noncompile/redecl-1.c: New test.

From-SVN: r35122
This commit is contained in:
Alexandre Oliva 2000-07-18 18:27:12 +00:00 committed by Alexandre Oliva
parent 79c282037d
commit 611a0be7ae
2 changed files with 14 additions and 0 deletions

View File

@ -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.

View 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" } */
}