1 ; RUN: llc -mtriple=x86_64-apple-darwin11 < %s | FileCheck %s
3 ; Check that the cases which lead to unreachable are checked after "10"
5 define void @test1(i32 %x) nounwind uwtable ssp {
7 switch i32 %x, label %if.end7 [
9 i32 10, label %if.then2
10 i32 20, label %if.then5
20 tail call void @unr(i32 23) noreturn nounwind
24 tail call void @bar(i32 42) nounwind
28 tail call void @unr(i32 5) noreturn nounwind
35 declare void @unr(i32) noreturn
37 declare void @bar(i32)