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