summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/weak-global-symbol.macho-i386bin0 -> 344 bytes
-rw-r--r--llvm/test/Object/nm-trivial-object.test8
-rw-r--r--llvm/test/Object/nm-weak-global-macho.test3
3 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/Object/Inputs/weak-global-symbol.macho-i386 b/llvm/test/Object/Inputs/weak-global-symbol.macho-i386
new file mode 100644
index 00000000000..a9c8e0cde15
--- /dev/null
+++ b/llvm/test/Object/Inputs/weak-global-symbol.macho-i386
Binary files differ
diff --git a/llvm/test/Object/nm-trivial-object.test b/llvm/test/Object/nm-trivial-object.test
index d5177457a8d..748d6f20d51 100644
--- a/llvm/test/Object/nm-trivial-object.test
+++ b/llvm/test/Object/nm-trivial-object.test
@@ -25,10 +25,10 @@ ELF: U puts
macho: 00000000 U _SomeOtherFunction
-macho: 00000000 s _main
+macho: 00000000 T _main
macho: 00000000 U _puts
macho64: 00000028 s L_.str
-macho64: 00000000 u _SomeOtherFunction
-macho64: 00000000 s _main
-macho64: 00000000 u _puts
+macho64: 00000000 U _SomeOtherFunction
+macho64: 00000000 T _main
+macho64: 00000000 U _puts
diff --git a/llvm/test/Object/nm-weak-global-macho.test b/llvm/test/Object/nm-weak-global-macho.test
new file mode 100644
index 00000000000..ede26090f95
--- /dev/null
+++ b/llvm/test/Object/nm-weak-global-macho.test
@@ -0,0 +1,3 @@
+RUN: llvm-nm %p/Inputs/weak-global-symbol.macho-i386 | FileCheck %s
+
+CHECK: 00000000 S _a
OpenPOWER on IntegriCloud