b4929425e94a0b467b0f3d9b3c20f59ff28784a0
[oota-llvm.git] / test / CodeGen / X86 / GC / cg-O0.ll
1 ; RUN: llc < %s -O0
2
3 define i32 @main() {
4 entry:
5   call void @f()
6   ret i32 0
7 }
8
9 define void @f() gc "ocaml" {
10 entry:
11   %ptr.stackref = alloca i8*
12   %gcroot = bitcast i8** %ptr.stackref to i8**
13   call void @llvm.gcroot(i8** %gcroot, i8* null)
14   ret void
15 }
16
17 declare void @llvm.gcroot(i8**, i8*) nounwind