aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-01-17 19:01:19 -0800
committerAlon Zakai <azakai@mozilla.com>2011-01-17 19:01:19 -0800
commit23515d06052a453efdb4d77fa517ebd14594d3be (patch)
tree4111e6f3513de81922307ef6f606b33e520e8f93 /tests
parent1f3de5c76e4947afccca350da24859e52f6aa83f (diff)
handle odd llvm with branches in the middle of labels; all tests pass
Diffstat (limited to 'tests')
-rw-r--r--tests/cases/breakinthemiddle.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/cases/breakinthemiddle.ll b/tests/cases/breakinthemiddle.ll
new file mode 100644
index 00000000..38ca96b4
--- /dev/null
+++ b/tests/cases/breakinthemiddle.ll
@@ -0,0 +1,18 @@
+@.str = private constant [15 x i8] c"hello, world!\0A\00", align 1 ; [#uses=1]
+
+define linkonce_odr i32* @main() align 2 {
+ %199 = trunc i8 1 to i1 ; [#uses=1]
+ br i1 %199, label %555, label %569
+
+; <label>:555 ; preds = %353
+ br label %569
+ ; No predecessors!
+ br label %569
+
+; <label>:569 ; preds = %555
+ %333 = call i32 @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0)) ; [#uses=0]
+ ret i32 0
+}
+
+declare i32 @printf(i8*)
+