Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / undef-multi.s
blobc59bff2a5e6332b4e852f9127fa1ca689cf38f15
1 # REQUIRES: aarch64
3 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o
4 # RUN: not %lld -arch arm64 %t.o -o /dev/null 2>&1 | FileCheck -DFILE=%t.o %s
6 # CHECK: error: undefined symbol: _undef
7 # CHECK-NEXT: >>> referenced by [[FILE]]:(symbol _main+0x0)
8 # CHECK-NEXT: >>> referenced by [[FILE]]:(symbol _foo+0x0)
9 # CHECK-NEXT: >>> referenced by [[FILE]]:(symbol _bar+0x0)
10 # CHECK-NEXT: >>> referenced 1 more times
12 .globl _main
13 _main:
14 b _undef
16 .globl _foo
17 _foo:
18 b _undef
20 .global _bar
21 _bar:
22 b _undef
24 .globl _baz
25 _baz:
26 b _undef
28 .subsections_via_symbols