YouCompleteMe/cpp/llvm/test/CodeGen/X86/GC/lower_gcroot.ll
2012-07-05 17:51:06 -07:00

12 lines
206 B
LLVM

; 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)