diff options
Diffstat (limited to 'test/COFF/reloc-discarded-early2.s')
-rw-r--r-- | test/COFF/reloc-discarded-early2.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/COFF/reloc-discarded-early2.s b/test/COFF/reloc-discarded-early2.s new file mode 100644 index 000000000000..18e200008721 --- /dev/null +++ b/test/COFF/reloc-discarded-early2.s @@ -0,0 +1,9 @@ +# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s +# RUN: not lld-link -entry:__ImageBase -subsystem:console %t.obj 2>&1 | FileCheck %s + +.text +# CHECK: error: relocation against symbol in discarded section: .drectve +.quad .Ldrectve + +.section .drectve +.Ldrectve: |