Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp28.c
blob6b2a1fd6b75ea7ebc87b1cda9b958b969a39f132
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1" } */
4 int f(_Bool a)
6 int t = a;
7 if (t != 2)
8 return 0;
9 return 1;
12 int f1(unsigned char a)
14 int t = a;
15 if (t != 256)
16 return 0;
17 return 1;
20 int f3 (unsigned char c)
22 int i = c;
23 if (i < 0 || i > 255)
24 return -1;
25 else
26 return 0;
29 /* { dg-final { scan-tree-dump-times "if " 0 "vrp1" } } * /
30 /* { dg-final { cleanup-tree-dump "vrp1" } } */