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