aboutsummaryrefslogtreecommitdiff
path: root/test/Verifier/gcroot-ptrptr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/gcroot-ptrptr.ll')
-rw-r--r--test/Verifier/gcroot-ptrptr.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Verifier/gcroot-ptrptr.ll b/test/Verifier/gcroot-ptrptr.ll
new file mode 100644
index 0000000000..0a7738d866
--- /dev/null
+++ b/test/Verifier/gcroot-ptrptr.ll
@@ -0,0 +1,14 @@
+; RUN: not llvm-as < %s
+; PR1633
+
+%meta = type { i8* }
+%obj = type { %meta* }
+
+declare void @llvm.gcroot(%obj*, %meta*)
+
+define void @f() {
+entry:
+ %local.obj = alloca %obj
+ call void @llvm.gcroot(%obj* %local.obj, %meta* null)
+ ret void
+}