[WinEH] Handle nested landing pads in outlined catch handlers
[oota-llvm.git] / test / CodeGen / XCore / trap.ll
1 ; RUN: llc < %s -march=xcore | FileCheck %s
2 define i32 @test() noreturn nounwind  {
3 entry:
4 ; CHECK-LABEL: test:
5 ; CHECK: ldc
6 ; CHECK: ecallf
7         tail call void @llvm.trap( )
8         unreachable
9 }
10
11 declare void @llvm.trap() nounwind 
12