summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr30189.c
blob: 6aa963e7a108601215611adca5ece84a2e6e00a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-g -O" } */

extern void foo (void);

static
void baz (int i)
{
  foo ();
  typedef char A[i];
  struct { A b; } *x = 0;
}

void
bar (i)
{
  baz (i);
}