aboutsummaryrefslogtreecommitdiffstats
path: root/test/DebugInfo/2010-03-19-DbgDeclare.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/DebugInfo/2010-03-19-DbgDeclare.ll')
-rw-r--r--test/DebugInfo/2010-03-19-DbgDeclare.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/DebugInfo/2010-03-19-DbgDeclare.ll b/test/DebugInfo/2010-03-19-DbgDeclare.ll
new file mode 100644
index 0000000..1f7a889
--- /dev/null
+++ b/test/DebugInfo/2010-03-19-DbgDeclare.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -verify -disable-output
+
+define void @Foo(i32 %a, i32 %b) {
+entry:
+ call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1)
+ ret void
+}
+
+!0 = metadata !{i32 662302, i32 26, metadata !1, null}
+!1 = metadata !{i32 4, metadata !"foo"}
+
+declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone