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