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