summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr33316.c
blob: d43478bb54f5fde7085f295245f32f65e0e448f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR debug/33316 */

int
foo (void *x, int y)
{
  const struct { int d[y]; } *a = x;
  return a[0].d[0];
}

int
bar (void *x, int y)
{
  const struct S { int d[y]; } *a = x;
  return a[0].d[0];
}