Regression test for the handling of nulls as arguments to debug intrinsics.
authorJim Laskey <jlaskey@mac.com>
Tue, 28 Mar 2006 01:34:14 +0000 (01:34 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 28 Mar 2006 01:34:14 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27204 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll b/test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll
new file mode 100644 (file)
index 0000000..e778a6f
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc
+
+implementation   ; Functions:
+
+declare void %llvm.dbg.declare({  }*, {  }*)
+
+void %foo() {
+       call void %llvm.dbg.declare( {  }* null, {  }* null ) 
+       ret void
+}