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 .personality directive.5 6 7 .syntax unified8 .text9 10@-------------------------------------------------------------------------------11@ TEST1: .personality before .fnstart12@-------------------------------------------------------------------------------13 .globl func114 .align 215 .type func1,%function16 .personality __gxx_personality_v017@ CHECK: error: .fnstart must precede .personality directive18@ CHECK: .personality __gxx_personality_v019@ CHECK: ^20 .fnstart21func1:22 .fnend23 24 25 26@-------------------------------------------------------------------------------27@ TEST2: .personality after .handlerdata28@-------------------------------------------------------------------------------29 .globl func230 .align 231 .type func2,%function32 .fnstart33func2:34 .handlerdata35 .personality __gxx_personality_v036@ CHECK: error: .personality must precede .handlerdata directive37@ CHECK: .personality __gxx_personality_v038@ CHECK: ^39 .fnend40