Debian Codegraph @

gcc/testsuite/gcc.dg/pr120074.c

raw
1 /* PR tree-optimization/120074 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fno-tree-copy-prop -fno-tree-forwprop -fno-tree-ccp" } */
4
5 int foo (int);
6 short a;
7 int b;
8
9 int
10 bar (int d, int e)
11 {
12 return d < 0 || d > __INT_MAX__ >> e;
13 }
14
15 int
16 main ()
17 {
18 int f = bar ((b ^ a) & 3, __SIZEOF_INT__ * __CHAR_BIT__ - 2);
19 foo (f);
20 }