aboutsummaryrefslogtreecommitdiff
path: root/test/Verifier/gcroot-meta.ll
blob: 1836f61c7ad6d7eea4092b4428c32175a4860748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: not llvm-as < %s >& /dev/null
; PR1633

%meta = type { i8* }
%obj = type { %meta* }

declare void @llvm.gcroot(%obj**, %meta*)

define void @f() {
entry:
	%local.obj = alloca %obj*
	%local.meta = alloca %meta
	call void @llvm.gcroot(%obj** %local.obj, %meta* %local.meta)
	
	ret void
}