1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/Generic/GC/lower_gcroot.ll
Gordon Henriksen a9f4ed4070 Noting and enforcing that GC intrinsics are valid only within a
function with GC.

This will catch the error when the inliner inlines a function with
GC into a caller with no GC.

llvm-svn: 45350
2007-12-25 02:31:26 +00:00

12 lines
216 B
LLVM

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