aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/GC/lower_gcroot.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/GC/lower_gcroot.ll')
-rw-r--r--test/CodeGen/X86/GC/lower_gcroot.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/GC/lower_gcroot.ll b/test/CodeGen/X86/GC/lower_gcroot.ll
new file mode 100644
index 0000000000..c2d418ac50
--- /dev/null
+++ b/test/CodeGen/X86/GC/lower_gcroot.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s
+
+ %Env = type i8*
+
+define void @.main(%Env) gc "shadow-stack" {
+ %Root = alloca %Env
+ call void @llvm.gcroot( %Env* %Root, %Env null )
+ unreachable
+}
+
+declare void @llvm.gcroot(%Env*, %Env)