aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/BlockPlacement/basictest.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/BlockPlacement/basictest.ll b/test/Transforms/BlockPlacement/basictest.ll
new file mode 100644
index 0000000000..34db1eeb06
--- /dev/null
+++ b/test/Transforms/BlockPlacement/basictest.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -block-placement -disable-output -print
+
+int %test() {
+
+ br bool true, label %X, label %Y
+A:
+ ret int 0
+X:
+ br label %A
+Y:
+ br label %A
+}