Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O1 -fdump-tree-dom2" } */ | |
3 | |
4 extern void abort (void); | |
5 extern void blah (void); | |
6 | |
7 void | |
8 foo (int value) | |
9 { | |
10 switch (value) | |
11 { | |
12 case 40: | |
13 case 42: | |
14 if (value != 42) | |
15 abort (); | |
16 case 50: | |
17 blah (); | |
18 } | |
19 } | |
20 | |
21 /* There should be one IF conditional. */ | |
22 /* { dg-final { scan-tree-dump-times "if " 1 "dom2"} } */ | |
23 |