summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr59011.c
blob: b0d6c0f30a1d06e06dc72ec2f672ef80d1d8992c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR middle-end/59011 */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
/* { dg-require-effective-target alloca } */

void
foo (int m)
{
  int a[m];
  void
  bar (void)
  {
    {
      int
      baz (void)
      {
	return a[0];
      }
    }
    a[0] = 42;
  }
  bar ();
}