blob: 4fe90b90833a15c615a1ab8f080f479fc8ddbe0f [file] [log] [blame]
Matthijs Kooijman1cd8f112008-06-10 12:57:32 +00001; RUN: not llvm-as < %s >& /dev/null
Gordon Henriksen27acd3a2007-12-25 02:02:10 +00002
3 %list = type { i32, %list* }
4
5; This usage is invalid now; instead, objects must be bitcast to i8* for input
6; to the gc intrinsics.
7declare %list* @llvm.gcread(%list*, %list**)
8
9define %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)
12 ret i32 %tmp
13}