aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr52882.c
blob: 5f0f12a72b5a1e173420211047ec0d880281c703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O" } */

struct S1 {
  int f0;
  int f1;
};

int fn1 ();
void fn2 (struct S1);

void
fn3 () {
  struct S1 a = { 1, 0 };
  if (fn1 ())
    fn2 (a);
  for (; a.f1;) {
  }
}