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