aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr58432.c
blob: 22a720f142fa32d8bb053ff7f3fc54523e5c8f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-profiling "-fprofile-generate" } */
/* { dg-options "-O3 -fprofile-generate" } */

struct {
    int prefix;
    int dir_idx;
} *a;
int b;
void fn1() {
    int *c, *d;
    for (; b; b++)
      if (d[b]) {
	  c[b] = d[b];
	  a[0].dir_idx = 0;
      }
}