Gordon Henriksen | 247902a | 2007-12-25 02:02:10 +0000 | [diff] [blame^] | 1 | ; RUN: not llvm-as < %s |
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. | ||||
8 | declare void @llvm.gcroot(%list*, %meta*) | ||||
9 | |||||
10 | define void @root() gc "example" { | ||||
11 | %x.var = alloca i8* | ||||
12 | call void @llvm.gcroot(i8** %x.var, %meta* null) | ||||
13 | } |