xref: /llvm-project/lld/test/COFF/export-imp.test (revision 912e821ab3d415dc8421f53738ebabcc7f1dac2d)
1; REQUIRES: x86
2
3; RUN: llvm-lib -machine:amd64 -out:%t.imp.lib -def:%s
4; RUN: lld-link -machine:amd64 -out:%t.dll %t.imp.lib -dll -noentry -export:__imp_func,DATA -map
5
6; FileCheck %s < %t.imp.map
7; CHECK: 0001:00000098       __imp_func                 0000000180001098     export-imp-thunk.test.tmp.imp:imp.dll
8
9LIBRARY imp.dll
10EXPORTS
11        func
12