From 8156a0d224a2636d5ac681f2744ce56a8956d974 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Tue, 28 Mar 2006 01:34:14 +0000 Subject: [PATCH] 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 --- .../CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll 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 00000000000..e778a6f1091 --- /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 +} -- 2.34.1