llvm.org GIT mirror llvm / 3ebe47e
Add testcase for PR3168. It was fixed over time. PR3168 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193152 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 6 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
1 ; PR3168
2
3 ; CHECK-LABEL: append
4
5 define i32* @append() gc "ocaml" {
6 entry:
7 switch i32 0, label %L2 [i32 0, label %L1]
8 L1:
9 %var8 = alloca i8*
10 call void @llvm.gcroot(i8** %var8,i8* null)
11 br label %L3
12 L2:
13 call ccc void @oread_runtime_casenotcovered()
14 unreachable
15 L3:
16 ret i32* null
17 }
18
19 declare ccc void @oread_runtime_casenotcovered()
20 declare void @llvm.gcroot(i8**,i8*)