blob: 18fa8978ca12fd764a011567b7616fdc76b7acf3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Test CFG simplify removal of branch instructions...
2;
3; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
4
5
6void "test1"() {
7 br label %BB1
8BB1:
9 ret void
10}
11
12void "test2"() {
13 ret void
14BB1:
15 ret void
16}
17
18void "test3"(bool %T) {
19 br bool %T, label %BB1, label %BB1
20BB1:
21 ret void
22}
23
24