Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / compact-unwind-bad-reloc.s
blob6507f5c057b9c364d3ab4ecd08861d7467fca900
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
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
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
24 .subsections_via_symbols