c86d9398f5a6b820633056611ceedce300c81e90
[oota-llvm.git] / test / Transforms / SimplifyCFG / basictest.ll
1 ; Test CFG simplify removal of branch instructions...
2 ;
3 ; RUN: if as < %s | opt -simplifycfg | dis | grep br
4 ; RUN: then exit 1
5 ; RUN: else exit 0
6 ; RUN: fi
7
8
9 void "test1"() {
10         br label %BB1
11 BB1:
12         ret void
13 }
14
15 void "test2"() {
16         ret void
17 BB1:
18         ret void
19 }
20
21 void "test3"(bool %T) {
22         br bool %T, label %BB1, label %BB1
23 BB1:
24         ret void
25 }
26
27