llvm-6502/test/CodeGen/Generic/GC/lower_gcroot.ll

12 lines
216 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | llc
%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)