SimplifyCFG: don't remove unreachable default switch destinations
[oota-llvm.git] / test / MC / ARM / unwind-stack-diagnostics.s
1 @ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
2 @ RUN:   | FileCheck %s
3
4         .syntax unified
5         .thumb
6
7         .text
8
9         .global multiple_personality_disorder
10         .type multiple_personality_disorder,%function
11 multiple_personality_disorder:
12         .fnstart
13         .personality __gcc_personality_v0
14         .personality __gxx_personality_v0
15         .personality __gxx_personality_sj0
16         .cantunwind
17
18 @ CHECK: error: .cantunwind can't be used with .personality directive
19 @ CHECK: .cantunwind
20 @ CHECK: ^
21 @ CHECK: note: .personality was specified here
22 @ CHECK: .personality __gcc_personality_v0
23 @ CHECK: ^
24 @ CHECK: note: .personality was specified here
25 @ CHECK: .personality __gxx_personality_v0
26 @ CHECK: ^
27 @ CHECK: note: .personality was specified here
28 @ CHECK: .personality __gxx_personality_sj0
29 @ CHECK: ^
30