summaryrefslogtreecommitdiffstats
path: root/test/DebugInfo/2009-10-16-Phi.ll
diff options
context:
space:
mode:
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 0000000..fc03751
--- /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
OpenPOWER on IntegriCloud