Debian Codegraph @

gcc/testsuite/g++.dg/pr100774.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-forwprop -fcompare-debug " } */
3
4 extern void __attribute__((noreturn)) error();
5
6 int x;
7
8 static inline int bar(void) {
9 char n = 1;
10 int i = x & 1U << n - 1;
11 return i;
12 }
13
14 void foo()
15 {
16 int a = bar();
17 for (;;) {
18 bool b;
19 int d = a;
20 b = a < 2;
21 if (!b)
22 error();
23 }
24 }