aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr114864.c
blob: cd9b94c094fc0335a0a68ad999841dc13a9af097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-options "-O1 -fno-tree-dce -fno-tree-fre" } */

struct a {
  int b;
} const c;
void d(const struct a f) {}
void e(const struct a f) {
  f.b == 0 ? 1 : f.b;
  d(f);
}
int main() {
  e(c);
  return 0;
}