xref: /llvm-project/lld/test/COFF/export-thunk.test (revision 14043d42e4c094079c89db3714152d541555a93d)
1REQUIRES: x86
2
3RUN: echo -e 'LIBRARY test.dll\nEXPORTS\nimpfunc\n' > %t.imp.def
4RUN: llvm-dlltool -m i386:x86-64 -d %t.imp.def -l %t.imp.lib
5RUN: lld-link -machine:amd64 -out:%t.dll -dll -noentry -lldmingw %t.imp.lib -export:impfunc -output-def:%t.def
6
7Check that the synthetic import thunk is exported as a function, not data.
8
9RUN: cat %t.def | FileCheck %s
10CHECK: EXPORTS
11CHECK-NEXT: impfunc @1
12
13RUN: cat %t.def | FileCheck -check-prefix=CHECK-NO-DATA %s
14CHECK-NO-DATA-NOT: DATA
15