aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/X86/reloc-macho.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/reloc-macho.s')
-rw-r--r--test/MC/X86/reloc-macho.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/X86/reloc-macho.s b/test/MC/X86/reloc-macho.s
new file mode 100644
index 0000000..9297b1b
--- /dev/null
+++ b/test/MC/X86/reloc-macho.s
@@ -0,0 +1,9 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r | FileCheck %s
+
+// CHECK: Relocations [
+// CHECK-NEXT: ]
+
+ .section foo,bar
+La:
+Lb:
+ .long La-Lb