1# REQUIRES: x86 2# 3# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o 4# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-func.s -filetype=obj -o %t-dabcds00000.o 5# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o 6# RUN: rm -f %t-implib.a 7# RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o 8# RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main -subsystem:console \ 9# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib %t-implib.a -include:func 10# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=EXPORT %s 11 12# Check that only the single normal symbol was exported, none of the symbols 13# from the import library. 14 15EXPORT: Export { 16EXPORT-NEXT: Ordinal: 0 17EXPORT-NEXT: Name: 18EXPORT-NEXT: RVA: 0x0 19EXPORT-NEXT: } 20EXPORT-NEXT: Export { 21EXPORT-NEXT: Ordinal: 1 22EXPORT-NEXT: Name: main 23EXPORT-NEXT: RVA: 0x1010 24EXPORT-NEXT: } 25EXPORT-NEXT-EMPTY: 26