Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr119030.c

raw
1 /* PR tree-optimization/119030 */
2
3 static inline unsigned
4 foo (long long x)
5 {
6 return x & 0x8000;
7 }
8
9 static inline long long
10 bar (long long x)
11 {
12 if (foo (x))
13 return -1000L;
14 else
15 return x >> 16;
16 }
17
18 long long x = -0x20000LL;
19
20 int
21 main ()
22 {
23 if (bar (x) >= 0)
24 __builtin_abort ();
25 return 0;
26 }