summaryrefslogtreecommitdiff
path: root/test/DebugInfo/2009-10-16-Phi.ll
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-17 03:28:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-17 03:28:20 +0000
commit9c7ca4a7452c7db7e9294738b85eae36fbaf8f37 (patch)
tree6b8d29a382227bab422f88c41fdf0208e73178d2 /test/DebugInfo/2009-10-16-Phi.ll
parentca24a695e7727da5df40a819d1144c32c8fb0110 (diff)
downloadllvm-9c7ca4a7452c7db7e9294738b85eae36fbaf8f37.tar.gz
llvm-9c7ca4a7452c7db7e9294738b85eae36fbaf8f37.tar.bz2
llvm-9c7ca4a7452c7db7e9294738b85eae36fbaf8f37.tar.xz
Reclaim a lost month.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/2009-10-16-Phi.ll')
-rw-r--r--test/DebugInfo/2009-10-16-Phi.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/DebugInfo/2009-10-16-Phi.ll b/test/DebugInfo/2009-10-16-Phi.ll
new file mode 100644
index 0000000000..fc0375186d
--- /dev/null
+++ b/test/DebugInfo/2009-10-16-Phi.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as %s -disable-output
+
+define i32 @foo() {
+E:
+ br label %B2
+B1:
+ br label %B2
+B2:
+ %0 = phi i32 [ 0, %E ], [ 1, %B1 ], !dbg !0
+ ret i32 %0
+}
+
+!0 = metadata !{i32 42} \ No newline at end of file