xref: /llvm-project/lld/test/MachO/invalid/arm64-thunk-undefined.s (revision c15b5888527bce7c794270d76484068ff3dc73a4)
1# REQUIRES: aarch64
2
3# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o
4## This shouldn't assert.
5# RUN: not %lld -arch arm64 -lSystem -o %t/thunk %t.o 2>&1 | FileCheck %s
6
7# CHECK: error: undefined symbol: _g
8
9.subsections_via_symbols
10
11.p2align 2
12
13.globl _main, _g
14
15.globl _main
16_main:
17  bl _g
18  ret
19
20_filler1:
21.space 0x4000000
22
23_filler2:
24.space 0x4000000
25