brintos

brintos / llvm-project-archived public Read only

0
0
Text · 827 B · 6507f5c Raw
25 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3# 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.o4# RUN: not %lld -lSystem -dylib -lc++ %t/bad-function.o -o /dev/null 2>&1 | FileCheck %s5# CHECK: error: {{.*}}bad-function.o:(__compact_unwind+0x0) references section __data which is not in segment __TEXT6# CHECK: error: {{.*}}bad-function.o:(__compact_unwind+0x20) references section __data which is not in segment __TEXT7 8#--- bad-function.s9.data10_not_a_function:11  .cfi_startproc12  .cfi_personality 155, ___gxx_personality_v013  .cfi_def_cfa_offset 1614  retq15  .cfi_endproc16 17_not_a_function_2:18  .cfi_startproc19  .cfi_personality 155, ___gxx_personality_v020  .cfi_def_cfa_offset 1621  retq22  .cfi_endproc23 24.subsections_via_symbols25