Add a reduced testcase from pr23025.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-04-17 09:05:25 +00:00
parent 2298ce3d6a
commit e95f704ed9

18
test/MC/COFF/pr23025.s Normal file
View File

@ -0,0 +1,18 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-msvc < %s | llvm-readobj -r | FileCheck %s
// CHECK: Relocations [
// CHECK-NEXT: Section {{.*}} .text {
// CHECK-NEXT: 0x3 IMAGE_REL_AMD64_REL32 zed
// CHECK-NEXT: }
// CHECK-NEXT: ]
foo:
leaq zed(%rip), %rax
retq
.section .rdata,"dr",discard,zed
Lbar:
.zero 2
.globl zed
zed = Lbar+1