c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68671.c
blobbec4639f80a865ead8d7f26c7516b8ba45d1d2d6
1 /* PR tree-optimization/68671 */
2 /* { dg-do run } */
3 /* { dg-options " -O2 -fno-tree-dce" } */
5 volatile int a = -1;
6 volatile int b;
8 static inline int
9 fn1 (signed char p1, int p2)
11 return (p1 < 0) || (p1 > (1 >> p2)) ? 0 : (p1 << 1);
14 int
15 main ()
17 signed char c = a;
18 b = fn1 (c, 1);
19 c = ((128 | c) < 0 ? 1 : 0);
20 if (c != 1)
21 __builtin_abort ();
22 return 0;