1 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t 2 @ RUN: FileCheck --check-prefix=CHECK < %t %s 3 4 @ Check the diagnostics for .personality directive. 5 6 7 .syntax unified 8 .text 9 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 23 24 25 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 40