2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp38.c
blobb740c60242c9c8d1c18f10adbf1da213639d108e
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 int __attribute__((noinline))
5 foo(char c)
7 unsigned short a = (unsigned short)c;
8 if (a >= -32000 && a <= 32000)
9 return c == 0;
10 return -1;
13 extern void abort (void);
15 int main()
17 if (foo(1) == 1)
18 abort ();
19 return 0;