diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Generic/GC/lower_gcroot.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/GC/lower_gcroot.ll b/test/CodeGen/Generic/GC/lower_gcroot.ll new file mode 100644 index 0000000..3a3abac --- /dev/null +++ b/test/CodeGen/Generic/GC/lower_gcroot.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc + + %Env = type opaque* + +define void @.main(%Env) { + call void @llvm.gcroot( %Env* null, %Env null ) + unreachable +} + +declare void @llvm.gcroot(%Env*, %Env) |