aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/debug/pr39412.c
blob: 71b7b5e21a956cd84f71d16105d1adbc4d8506d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR debug/39412 */
/* { dg-do compile } */

struct S { int i; };

inline void
bar (const void *x, unsigned long y)
{
  const union { struct S a[y]; } *u = x;
}

void
foo (const void *x, unsigned long y)
{
  bar (x, y);
}