Home | History | Annotate | Download | only in GC
      1 ; RUN: not llvm-as < %s >& /dev/null
      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 }
     14