# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
# RUN: rm -f %t
# RUN: llvm-ar rcs %t %t.o
# RUN: llvm-nm -M %t | FileCheck %s

# Test that weak undefined symbols don't show up in the archive symbol
# table.

.global foo
foo:
.weak bar
.quad bar

# CHECK: Archive map
# CHECK-NEXT: foo in archive-symbol-table.s.tmp.o
# CHECK-NOT: in
# CHECK: archive-symbol-table.s.tmp.o
# CHECK-NEXT: w bar
# CHECK-NEXT: T foo

Add an extra test for archive symbol tables.
Add an extra test for archive symbol tables.

The table should include only defined symbols.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@303075 91177308-0d34-0410-b5e6-96231b3b80d8
