aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/decl-5.c
blob: 9b7782464598bb47f86f24223ea1b87c965271d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();
}

void b()
{
  void c();
}

void c() {}