libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr66952.c
bloba5f6e632a77ba74c7734b4d85af4292b760591b6
1 /* { dg-do run } */
3 int a = 128, b;
5 static int
6 fn1 (signed char p1, int p2)
8 return p1 < 0 || p1 > 1 >> p2 ? 0 : p1 << 1;
11 static int
12 fn2 ()
14 signed char c = a;
15 b = fn1 (c, 1);
16 if ((128 | c) < 0 ? 1 : 0)
17 return 1;
18 return 0;
21 int
22 main ()
24 if (fn2 () != 1)
25 __builtin_abort ();
27 return 0;