Home | History | Annotate | Download | only in ARM
      1 @ RUN: not llvm-mc %s -triple=armv7-unknown-linux-gnueabi \
      2 @ RUN:   -filetype=obj -o /dev/null 2>&1 | FileCheck %s
      3 
      4 @ Check the diagnostics for the mismatched .fnstart directives.
      5 
      6 @ There should be some diagnostics when the previous .fnstart is not closed
      7 @ by the .fnend directive.
      8 
      9 
     10 	.syntax unified
     11 	.text
     12 
     13 	.globl	func1
     14 	.align	2
     15 	.type	func1,%function
     16 	.fnstart
     17 func1:
     18 	@ Intentionally miss the .fnend directive
     19 
     20 	.globl	func2
     21 	.align	2
     22 	.type	func2,%function
     23 	.fnstart
     24 @ CHECK: error: .fnstart starts before the end of previous one
     25 @ CHECK:        .fnstart
     26 @ CHECK:        ^
     27 @ CHECK: note: .fnstart was specified here
     28 @ CHECK:        .fnstart
     29 @ CHECK:        ^
     30 func2:
     31 	.fnend
     32