1 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
2 @ RUN: FileCheck < %t %s
4 @ Check the diagnostics for .cantunwind, .handlerdata, and .personality
6 @ .cantunwind directive can't be used with .handlerdata directive nor
7 @ .personality directive. This test case check for the diagnostics for
14 @-------------------------------------------------------------------------------
15 @ TEST1: cantunwind + personality
16 @-------------------------------------------------------------------------------
23 .personality __gxx_personality_v0
24 @ CHECK: error: .personality can't be used with .cantunwind directive
25 @ CHECK: .personality __gxx_personality_v0
27 @ CHECK: note: .cantunwind was specified here
34 @-------------------------------------------------------------------------------
35 @ TEST2: cantunwind + handlerdata
36 @-------------------------------------------------------------------------------
44 @ CHECK: error: .handlerdata can't be used with .cantunwind directive
47 @ CHECK: note: .cantunwind was specified here
54 @-------------------------------------------------------------------------------
55 @ TEST3: personality + cantunwind
56 @-------------------------------------------------------------------------------
62 .personality __gxx_personality_v0
64 @ CHECK: error: .cantunwind can't be used with .personality directive
67 @ CHECK: note: .personality was specified here
68 @ CHECK: .personality __gxx_personality_v0
74 @-------------------------------------------------------------------------------
75 @ TEST4: handlerdata + cantunwind
76 @-------------------------------------------------------------------------------
84 @ CHECK: error: .cantunwind can't be used with .handlerdata directive
87 @ CHECK: note: .handlerdata was specified here
94 @-------------------------------------------------------------------------------
95 @ TEST5: cantunwind + fnstart
96 @-------------------------------------------------------------------------------
101 @ CHECK: error: .fnstart must precede .cantunwind directive