[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / ARM / eh-directive-personality-diagnostics.s
blobd90204aa29dc93f8290ce1b07f056363f41ed94f
1 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
2 @ RUN: FileCheck < %t %s
4 @ Check the diagnostics for .personality directive.
7 .syntax unified
8 .text
10 @-------------------------------------------------------------------------------
11 @ TEST1: .personality before .fnstart
12 @-------------------------------------------------------------------------------
13 .globl func1
14 .align 2
15 .type func1,%function
16 .personality __gxx_personality_v0
17 @ CHECK: error: .fnstart must precede .personality directive
18 @ CHECK: .personality __gxx_personality_v0
19 @ CHECK: ^
20 .fnstart
21 func1:
22 .fnend
26 @-------------------------------------------------------------------------------
27 @ TEST2: .personality after .handlerdata
28 @-------------------------------------------------------------------------------
29 .globl func2
30 .align 2
31 .type func2,%function
32 .fnstart
33 func2:
34 .handlerdata
35 .personality __gxx_personality_v0
36 @ CHECK: error: .personality must precede .handlerdata directive
37 @ CHECK: .personality __gxx_personality_v0
38 @ CHECK: ^
39 .fnend