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