summaryrefslogtreecommitdiffstats
path: root/test/Assembler/2007-02-07-BasicBlockRename.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2007-02-07-BasicBlockRename.ll')
-rw-r--r--test/Assembler/2007-02-07-BasicBlockRename.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Assembler/2007-02-07-BasicBlockRename.ll b/test/Assembler/2007-02-07-BasicBlockRename.ll
new file mode 100644
index 0000000..084dc69
--- /dev/null
+++ b/test/Assembler/2007-02-07-BasicBlockRename.ll
@@ -0,0 +1,14 @@
+; PR1187
+; RUN: llvm-upgrade < %s | llvm-as > /dev/null
+
+implementation
+
+int @main(int %argc, sbyte** %argv) {
+entry:
+ %exit = alloca int, align 4 ; <i32*> [#uses=11]
+ store int 0, int* %exit
+ br label %exit
+
+exit:
+ ret int 0
+}