• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -O0
2; REQUIRES: default_triple
3
4define i32 @main() {
5entry:
6  call void @f()
7  ret i32 0
8}
9
10define void @f() gc "ocaml" {
11entry:
12  %ptr.stackref = alloca i8*
13  %gcroot = bitcast i8** %ptr.stackref to i8**
14  call void @llvm.gcroot(i8** %gcroot, i8* null)
15  ret void
16}
17
18declare void @llvm.gcroot(i8**, i8*) nounwind
19