Debian Codegraph @

gcc/testsuite/gcc.dg/pr115579.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-Os -fno-tree-sra" } */
3
4 int printf(const char *, ...);
5 int a, b = 1, c;
6 int main() {
7 int d[2], *e = &d[1];
8 while (a) {
9 int *f = &b;
10 d[1] = 0;
11 *f = 0;
12 }
13 if (c)
14 printf("%d\n", *e);
15 if (b != 1)
16 __builtin_abort();
17 return 0;
18 }