aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr94526.c
blob: 9864c4c311392b52200f66bf888e963e685d82ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR middle-end/94526 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

struct S { int val[8 * sizeof (int)]; };

void
foo (struct S *x)
{
  struct S *a = x;
}

void baz (struct S);

void
bar (void)
{
  struct S b;
  foo (&b);
  baz (b);
}