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 5 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 10 11# CHECK-LABEL: Exports trie: 12# CHECK-DAG: 0x0000DEAD _foo [absolute] 13# CHECK-DAG: 0x0000BEEF _weakfoo [absolute] 14 15.globl _foo, _weakfoo, _main 16.weak_definition _weakfoo 17_foo = 0xdead 18_weakfoo = 0xbeef 19_localfoo = 0xcafe 20 21.text 22_main: 23 ret 24