2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2015-09-16 13:34:32 +08:00
|
|
|
; REQUIRES: default_triple
|
2007-09-01 10:00:51 +08:00
|
|
|
|
2007-12-25 10:02:10 +08:00
|
|
|
%Env = type i8*
|
2007-09-01 10:00:51 +08:00
|
|
|
|
2007-12-25 10:31:26 +08:00
|
|
|
define void @.main(%Env) gc "shadow-stack" {
|
2007-09-18 04:30:04 +08:00
|
|
|
%Root = alloca %Env
|
|
|
|
call void @llvm.gcroot( %Env* %Root, %Env null )
|
2007-09-01 10:00:51 +08:00
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.gcroot(%Env*, %Env)
|