aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/pr19582.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/pr19582.s')
-rw-r--r--test/MC/ELF/pr19582.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/ELF/pr19582.s b/test/MC/ELF/pr19582.s
new file mode 100644
index 0000000..304cacb
--- /dev/null
+++ b/test/MC/ELF/pr19582.s
@@ -0,0 +1,8 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s
+
+a:
+ .section foo
+ c = b
+b:
+ // CHECK: 0x0 R_X86_64_PC32 .text 0x0
+ .long a - c