1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; PR3168 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: append 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine i32* @append() gc "ocaml" { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker switch i32 0, label %L2 [i32 0, label %L1] 9*9880d681SAndroid Build Coastguard WorkerL1: 10*9880d681SAndroid Build Coastguard Worker %var8 = alloca i8* 11*9880d681SAndroid Build Coastguard Worker call void @llvm.gcroot(i8** %var8,i8* null) 12*9880d681SAndroid Build Coastguard Worker br label %L3 13*9880d681SAndroid Build Coastguard WorkerL2: 14*9880d681SAndroid Build Coastguard Worker call ccc void @oread_runtime_casenotcovered() 15*9880d681SAndroid Build Coastguard Worker unreachable 16*9880d681SAndroid Build Coastguard WorkerL3: 17*9880d681SAndroid Build Coastguard Worker ret i32* null 18*9880d681SAndroid Build Coastguard Worker} 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Workerdeclare ccc void @oread_runtime_casenotcovered() 21*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.gcroot(i8**,i8*) 22