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