summaryrefslogtreecommitdiff
path: root/test/Object/X86/nm-macho.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/Object/X86/nm-macho.s')
-rw-r--r--test/Object/X86/nm-macho.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Object/X86/nm-macho.s b/test/Object/X86/nm-macho.s
new file mode 100644
index 0000000000000..7bdfa34ca3660
--- /dev/null
+++ b/test/Object/X86/nm-macho.s
@@ -0,0 +1,9 @@
+// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-apple-darwin
+// RUN: llvm-nm -n %t | FileCheck %s
+// CHECK: 0000000000000000 t _f
+// CHECK: 0000000000000004 C _a
+
+_f:
+ retq
+
+ .comm _a,4