1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 2*9880d681SAndroid Build Coastguard Worker; REQUIRES: default_triple 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine i32 @main() { 5*9880d681SAndroid Build Coastguard Workerentry: 6*9880d681SAndroid Build Coastguard Worker call void @f() 7*9880d681SAndroid Build Coastguard Worker ret i32 0 8*9880d681SAndroid Build Coastguard Worker} 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @f() gc "ocaml" { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %ptr.stackref = alloca i8* 13*9880d681SAndroid Build Coastguard Worker %gcroot = bitcast i8** %ptr.stackref to i8** 14*9880d681SAndroid Build Coastguard Worker call void @llvm.gcroot(i8** %gcroot, i8* null) 15*9880d681SAndroid Build Coastguard Worker ret void 16*9880d681SAndroid Build Coastguard Worker} 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.gcroot(i8**, i8*) nounwind 19