summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Object/Inputs/weak.elf-x86-64bin0 -> 896 bytes
-rw-r--r--test/Object/nm-trivial-object.test6
2 files changed, 6 insertions, 0 deletions
diff --git a/test/Object/Inputs/weak.elf-x86-64 b/test/Object/Inputs/weak.elf-x86-64
new file mode 100644
index 0000000000..e45f9880f9
--- /dev/null
+++ b/test/Object/Inputs/weak.elf-x86-64
Binary files differ
diff --git a/test/Object/nm-trivial-object.test b/test/Object/nm-trivial-object.test
index d13d217d2f..c2d2ebb14b 100644
--- a/test/Object/nm-trivial-object.test
+++ b/test/Object/nm-trivial-object.test
@@ -6,6 +6,8 @@ RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
RUN: | FileCheck %s -check-prefix ELF
RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
RUN: | FileCheck %s -check-prefix ELF
+RUN: llvm-nm %p/Inputs/weak.elf-x86-64 \
+RUN: | FileCheck %s -check-prefix WEAK-ELF
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
RUN: | FileCheck %s -check-prefix macho
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
@@ -34,6 +36,10 @@ ELF: U SomeOtherFunction
ELF: 00000000 T main
ELF: U puts
+WEAK-ELF: w f1
+WEAK-ELF: 00000000 W f2
+WEAK-ELF: v x1
+WEAK-ELF: 00000000 V x2
macho: 00000000 U _SomeOtherFunction
macho: 00000000 T _main