2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp112.c
blobfdc6711bae415dada95bfda62ff762934e7fa20d
1 /* PR tree-optimization/78819 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
5 __attribute__((noinline, noclone)) void
6 foo (int argc)
8 if (argc <= 0 || argc > 3)
9 return;
11 switch (argc)
13 case 1:
14 case 3:
15 if (argc != 3)
16 __builtin_abort ();
17 break;
18 case 2:
19 asm ("");
20 break;
21 default:
22 __builtin_abort ();
26 int
27 main (void)
29 foo (3);
30 return 0;