From 4f1062adb806fb1bac58895699e521c002eb0c7d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 30 May 2016 20:18:53 +0000 Subject: Fix a crash when producing COFF. llvm-svn: 271229 --- llvm/test/MC/COFF/relax-reloc.s | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/MC/COFF/relax-reloc.s (limited to 'llvm/test') diff --git a/llvm/test/MC/COFF/relax-reloc.s b/llvm/test/MC/COFF/relax-reloc.s new file mode 100644 index 00000000000..21590db4b8d --- /dev/null +++ b/llvm/test/MC/COFF/relax-reloc.s @@ -0,0 +1,6 @@ +// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-pc-win32 + +// Don't crash trying to create relaxable relocations on COFF. + + add bar(%rip), %rax + call *bar(%rip) -- cgit v1.2.3