Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / lld / test / MachO / invalid / init-offsets.s
blob51a441e0a3e29dc31e353078f4519d1d32a6d76b
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
4 # RUN: not %lld -lSystem -init_offsets %t.o -o /dev/null 2>&1 | FileCheck %s
6 # CHECK: error: {{.*}}init-offsets.s.tmp.o:(symbol _main+0x3): cannot reference _init_slot defined in __mod_init_func when -init_offsets is used
8 .globl _main
9 .text
10 _main:
11 leaq _init_slot(%rip), %rax
13 .section __DATA,__mod_init_func,mod_init_funcs
14 _init_slot:
15 .quad _main