17 lines · plain
1; RUN: llc -mtriple=x86_64 < %s -O02 3define i32 @main() {4entry:5 call void @f()6 ret i32 07}8 9define void @f() gc "ocaml" {10entry:11 %ptr.stackref = alloca ptr12 call void @llvm.gcroot(ptr %ptr.stackref, ptr null)13 ret void14}15 16declare void @llvm.gcroot(ptr, ptr) nounwind17