1 ; RUN: not llvm-as < %s >& /dev/null
3 %list = type { i32, %list* }
5 ; This usage is invalid now; instead, objects must be bitcast to i8* for input
6 ; to the gc intrinsics.
7 declare %list* @llvm.gcread(%list*, %list**)
9 define %list* @tl(%list* %l) gc "example" {
10 %hd.ptr = getelementptr %list* %l, i32 0, i32 0
11 %hd = call %list* @llvm.gcread(%list* %l, %list** %hd.ptr)