llvm.org GIT mirror llvm / 699b16c
Add an extra test for archive symbol tables. The table should include only defined symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303075 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
1 # RUN: rm -f %t
2 # RUN: llvm-ar rcs %t %t.o
3 # RUN: llvm-nm -M %t | FileCheck %s
4
5 # Test that weak undefined symbols don't show up in the archive symbol
6 # table.
7
8 .global foo
9 foo:
10 .weak bar
11 .quad bar
12
13 # CHECK: Archive map
14 # CHECK-NEXT: foo in archive-symbol-table.s.tmp.o
15 # CHECK-NOT: in
16 # CHECK: archive-symbol-table.s.tmp.o
17 # CHECK-NEXT: w bar
18 # CHECK-NEXT: T foo