blob: a63abf751fa84be3e1b0aa5caa8be04a2c992103 [file] [log] [blame]
Chris Lattnerdac95a02002-05-06 02:37:38 +00001; Test CFG simplify removal of branch instructions...
2;
3; RUN: if as < %s | opt -dce | dis | grep br
4; RUN: then exit 1
5; RUN: else exit 0
6; RUN: fi
7
8
9void "test1"() {
10 br label %BB1
11BB1:
12 ret void
13}
14
15void "test2"() {
16 ret void
17BB1:
18 ret void
19}
20
21void "test3"(bool %T) {
22 br bool %T, label %BB1, label %BB1
23BB1:
24 ret void
25}
26
27