Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/vrp34.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-vrp1" } */ | |
3 | |
4 void bar (void); | |
5 | |
6 void | |
7 foo (int a) | |
8 { | |
9 switch (a) | |
10 { | |
11 case 4: | |
12 if (a >= 3) | |
13 if (a <= 5) | |
14 bar (); | |
15 } | |
16 } | |
17 | |
18 /* Both ifs should be optimized (and switch statement will be the only if | |
19 in the function). */ | |
20 /* { dg-final { scan-tree-dump-times "if \\\(" 1 "vrp1" } } */ |