PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67028.c
blobb42fb8110ebb9df5c71bd4ddfdbe05a1806d6c76
1 /* { dg-do run } */
2 /* { dg-options "-O3" } */
4 short c = 0;
6 int __attribute__ ((noinline)) f(void)
8 int d = 5;
9 signed char e = (c != 1) * -2;
10 int a = (unsigned short)e > d;
12 return a;
15 int main(void)
17 if (!f())
18 __builtin_abort();
20 return 0;