1; RUN: not llvm-mc -triple arm64-apple-darwin %s -filetype=obj -o /dev/null 2>&1 | FileCheck %s --check-prefix=DARWIN 2 3; REQUIRES: aarch64-registered-target 4 5 .section __TEXT,locomotive,regular,pure_instructions 6 7 .globl _locomotive 8 .p2align 2 9_locomotive: 10 .cfi_startproc 11 ; An N_ALT_ENTRY symbol can be defined in the middle of a subsection, so 12 ; these are opted out of the .cfi_{start,end}proc nesting check. 13 .alt_entry _engineer 14_engineer: 15 ret 16 17 ; It is invalid to have a non-private label between .cfi_startproc and 18 ; .cfi_endproc on MachO platforms. 19 .section __TEXT,__text,regular,pure_instructions 20 .globl _caboose 21 .p2align 2 22_caboose: 23; DARWIN: [[#@LINE-1]]:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs 24; DARWIN: [[#@LINE-14]]:2: error: previous .cfi_startproc was here 25 ret 26 .cfi_endproc 27 28.subsections_via_symbols