Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / arm64-thunk-undefined.s
blob849184e6a683ae6485a2a801ccc1193c83fce361
1 # REQUIRES: aarch64
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
7 # CHECK: error: undefined symbol: _g
9 .subsections_via_symbols
11 .p2align 2
13 .globl _main, _g
15 .globl _main
16 _main:
17 bl _g
18 ret
20 _filler1:
21 .space 0x4000000
23 _filler2:
24 .space 0x4000000