Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-unreachable-5.c
blobba87bdd735e2cb47b91997b5c17c4fb32364a00e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fab1" } */
4 int
5 foo (int a)
7 if (a <= 0)
9 L1:
10 __builtin_unreachable ();
13 if (a > 2)
14 goto L1;
16 return a > 0;
19 /* { dg-final { scan-tree-dump-times "if \\(" 0 "fab1" } } */
20 /* { dg-final { scan-tree-dump-times "goto" 0 "fab1" } } */
21 /* { dg-final { scan-tree-dump-times "L1:" 0 "fab1" } } */
22 /* { dg-final { scan-tree-dump-times "__builtin_unreachable" 0 "fab1" } } */