xref: /llvm-project/lld/test/COFF/autoimport-nowarn.s (revision 6daa4b90e28ef4789ae0eb3163c6770c110d3a28)
1# REQUIRES: x86
2
3# RUN: echo -e "EXPORTS\nvariable" > %t-lib.def
4# RUN: llvm-dlltool -m i386 -d %t-lib.def -D lib.dll -l %t-lib.lib
5
6# RUN: llvm-mc -triple=i386-windows-gnu %s -filetype=obj -o %t.obj
7# RUN: lld-link -lldmingw -out:%t.exe -entry:main %t.obj %t-lib.lib -verbose 2>&1 | FileCheck --allow-empty %s
8
9# CHECK-NOT: runtime pseudo relocation {{.*}} is too narrow
10
11    .global _main
12    .text
13_main:
14    movl _variable, %eax
15    ret
16
17relocs:
18    .long ___RUNTIME_PSEUDO_RELOC_LIST__
19    .long ___RUNTIME_PSEUDO_RELOC_LIST_END__
20