1# REQUIRES: x86 2# RUN: rm -rf %t; split-file %s %t 3# RUN: llvm-mc -emit-compact-unwind-non-canonical=true -filetype=obj -triple=x86_64-apple-darwin19.0.0 %t/bad-function.s -o %t/bad-function.o 4# RUN: not %lld -lSystem -dylib -lc++ %t/bad-function.o -o /dev/null 2>&1 | FileCheck %s 5# CHECK: error: {{.*}}bad-function.o:(__compact_unwind+0x0) references section __data which is not in segment __TEXT 6# CHECK: error: {{.*}}bad-function.o:(__compact_unwind+0x20) references section __data which is not in segment __TEXT 7 8#--- bad-function.s 9.data 10_not_a_function: 11 .cfi_startproc 12 .cfi_personality 155, ___gxx_personality_v0 13 .cfi_def_cfa_offset 16 14 retq 15 .cfi_endproc 16 17_not_a_function_2: 18 .cfi_startproc 19 .cfi_personality 155, ___gxx_personality_v0 20 .cfi_def_cfa_offset 16 21 retq 22 .cfi_endproc 23 24.subsections_via_symbols 25