blob: 1b9d856c53782e393ae3e1fca48b1a499fd8f4b8 [file] [log] [blame]
Gordon Henriksen247902a2007-12-25 02:02:10 +00001; 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.
8declare void @llvm.gcroot(%list*, %meta*)
9
10define void @root() gc "example" {
11 %x.var = alloca i8*
12 call void @llvm.gcroot(i8** %x.var, %meta* null)
13}