Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / abs-symbols.s
blob5c106e5b94509c899f32d0d8ad23cb12616ba019
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3 # RUN: %lld -lSystem %t.o -o %t
4 # RUN: llvm-objdump --macho --syms --exports-trie %t | FileCheck %s
6 # CHECK-LABEL: SYMBOL TABLE:
7 # CHECK-DAG: 000000000000dead g *ABS* _foo
8 # CHECK-DAG: 000000000000beef g *ABS* _weakfoo
9 # CHECK-DAG: 000000000000cafe l *ABS* _localfoo
11 # CHECK-LABEL: Exports trie:
12 # CHECK-DAG: 0x0000DEAD _foo [absolute]
13 # CHECK-DAG: 0x0000BEEF _weakfoo [absolute]
15 .globl _foo, _weakfoo, _main
16 .weak_definition _weakfoo
17 _foo = 0xdead
18 _weakfoo = 0xbeef
19 _localfoo = 0xcafe
21 .text
22 _main:
23 ret