re PR c/14114 ([unit-at-a-time] ICE in gen_subprogram_die)
PR c/14114 * gcc.dg/decl-5.c: New test. From-SVN: r79012
This commit is contained in:
parent
ce3455909f
commit
64a3ee6bd9
@ -1,3 +1,8 @@
|
||||
2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||
|
||||
PR c/14114
|
||||
* gcc.dg/decl-5.c: New test.
|
||||
|
||||
2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
|
||||
|
||||
* gcc.dg/20040305-1.c: New test.
|
||||
|
20
gcc/testsuite/gcc.dg/decl-5.c
Normal file
20
gcc/testsuite/gcc.dg/decl-5.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* PR c/14114 */
|
||||
/* Origin: <snyder@fnal.gov> */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -g" } */
|
||||
|
||||
/* This used to fail because the compiler thought that the
|
||||
declaration of 'c' from 'b' was shadowing that from 'a'. */
|
||||
|
||||
void a()
|
||||
{
|
||||
void c();
|
||||
c();
|
||||
} /* { dg-bogus "error" "PR c/14114" { xfail *-*-* } } */
|
||||
|
||||
void b()
|
||||
{
|
||||
void c();
|
||||
}
|
||||
|
||||
void c() {}
|
Loading…
Reference in New Issue
Block a user