aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-28 01:34:14 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-28 01:34:14 +0000
commit8156a0d224a2636d5ac681f2744ce56a8956d974 (patch)
treedb1bd6d057ab3106ef0fc5a3054e4ff43d965363 /test/CodeGen/Generic
parentaaa80ebd10c62a903537d386b0d3738b0595491f (diff)
downloadexternal_llvm-8156a0d224a2636d5ac681f2744ce56a8956d974.zip
external_llvm-8156a0d224a2636d5ac681f2744ce56a8956d974.tar.gz
external_llvm-8156a0d224a2636d5ac681f2744ce56a8956d974.tar.bz2
Regression test for the handling of nulls as arguments to debug intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r--test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll b/test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll
new file mode 100644
index 0000000..e778a6f
--- /dev/null
+++ b/test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll
@@ -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
+}