Debian Codegraph @

gcc/testsuite/gcc.dg/pr102385.c

raw
1 /* { dg-options "-std=gnu17 -Wall -Wextra -O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning -fdump-tree-pcom-details-blocks -fdump-tree-lim-details-blocks" } */
2
3 short a, b;
4 int c[9];
5 void(d)() {}
6 void e() {
7 a = 0;
8 for (; a <= 4; a++) {
9 short *f = &b;
10 c[a] || (*f = 0);
11 d(c[a + 2]);
12 }
13 }
14 int main() {return 0;}
15 /* { dg-final { scan-tree-dump-not "Invalid sum" "pcom" } } */
16 /* { dg-final { scan-tree-dump-not "Invalid sum" "lim2" } } */