1; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a 2; RUN: llvm-nm %t.a | FileCheck %s 3 4LIBRARY test.dll 5EXPORTS 6TestFunction==AltTestFunction 7; When creating an import library, the DLL internal function name of 8; the implementation of a function isn't visible at all. 9ImpLibName = Implementation 10; A different import library name and implementation name can be mixed 11; with exposing it via a different name in the DLL than in code. 12ImpLibName2 = Implementation2 == AltTestFunction2 13; The fact that a DLL export entry is a forward to a different DLL doesn't 14; matter for the import library 15ImpLibName3 = kernel32.Sleep 16 17; CHECK: U AltTestFunction 18; CHECK-NEXT: W TestFunction 19; CHECK: U __imp_AltTestFunction 20; CHECK-NEXT: W __imp_TestFunction 21; CHECK: T ImpLibName 22; CHECK-NEXT: T __imp_ImpLibName 23; CHECK: U AltTestFunction2 24; CHECK-NEXT: W ImpLibName2 25; CHECK: U __imp_AltTestFunction2 26; CHECK-NEXT: W __imp_ImpLibName2 27; CHECK: T ImpLibName3 28; CHECK-NEXT: T __imp_ImpLibName3 29