40 lines · plain
1@ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t2@ RUN: FileCheck < %t %s3 4@ Check the diagnostics for .pad directive.5 6 7 .syntax unified8 .text9 10@-------------------------------------------------------------------------------11@ TEST1: .pad before .fnstart12@-------------------------------------------------------------------------------13 .globl func114 .align 215 .type func1,%function16 .pad #017@ CHECK: error: .fnstart must precede .pad directive18@ CHECK: .pad #019@ CHECK: ^20 .fnstart21func1:22 .fnend23 24 25 26@-------------------------------------------------------------------------------27@ TEST2: .pad after .handlerdata28@-------------------------------------------------------------------------------29 .globl func230 .align 231 .type func2,%function32 .fnstart33func2:34 .handlerdata35 .pad #036@ CHECK: error: .pad must precede .handlerdata directive37@ CHECK: .pad #038@ CHECK: ^39 .fnend40