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