15 lines · plain
1REQUIRES: x862 3RUN: echo -e 'LIBRARY test.dll\nEXPORTS\nimpfunc\n' > %t.imp.def4RUN: llvm-dlltool -m i386:x86-64 -d %t.imp.def -l %t.imp.lib5RUN: lld-link -machine:amd64 -out:%t.dll -dll -noentry -lldmingw %t.imp.lib -export:impfunc -output-def:%t.def6 7Check that the synthetic import thunk is exported as a function, not data.8 9RUN: cat %t.def | FileCheck %s10CHECK: EXPORTS11CHECK-NEXT: impfunc @112 13RUN: cat %t.def | FileCheck -check-prefix=CHECK-NO-DATA %s14CHECK-NO-DATA-NOT: DATA15