aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-15 23:41:32 +0000
committerDevang Patel <dpatel@apple.com>2009-01-15 23:41:32 +0000
commit2da0cc4c377b09f2d52689a5095f0960750e30c4 (patch)
treeb99fd06b4586d9db5e2df2549e1d6f9ec64707bd /test
parent639095bd76b07891ca0177d6e925ce7be3178382 (diff)
downloadexternal_llvm-2da0cc4c377b09f2d52689a5095f0960750e30c4.zip
external_llvm-2da0cc4c377b09f2d52689a5095f0960750e30c4.tar.gz
external_llvm-2da0cc4c377b09f2d52689a5095f0960750e30c4.tar.bz2
Validate dbg_* intrinsics before lowering them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/DebugInfo/2009-01-15-dbg_declare.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/DebugInfo/2009-01-15-dbg_declare.ll b/test/DebugInfo/2009-01-15-dbg_declare.ll
new file mode 100644
index 0000000..475949a
--- /dev/null
+++ b/test/DebugInfo/2009-01-15-dbg_declare.ll
@@ -0,0 +1,15 @@
+
+; RUN: llvm-as < %s | llc -f -o /dev/null
+target triple = "powerpc-apple-darwin9.5"
+ %llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }*, i8*, i8* }
+@llvm.dbg.variable24 = external constant %llvm.dbg.variable.type ; <%llvm.dbg.variable.type*> [#uses=1]
+
+declare void @llvm.dbg.declare({ }*, { }*) nounwind
+
+define i32 @isascii(i32 %_c) nounwind {
+entry:
+ call void @llvm.dbg.declare({ }* null, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable24 to { }*))
+ unreachable
+}
+
+