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:
Eric Botcazou 2004-03-06 10:28:51 +01:00 committed by Eric Botcazou
parent ce3455909f
commit 64a3ee6bd9
2 changed files with 25 additions and 0 deletions

View File

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

View 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() {}