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