xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/GC/badrootproto.ll (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1; RUN: not llvm-as < %s >& /dev/null
2
3	%list = type { i32, %list* }
4	%meta = type opaque
5
6; This usage is invalid now; instead, objects must be bitcast to i8* for input
7; to the gc intrinsics.
8declare void @llvm.gcroot(%list*, %meta*)
9
10define void @root() gc "example" {
11	%x.var = alloca i8*
12	call void @llvm.gcroot(i8** %x.var, %meta* null)
13}
14