[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / llvm / test / tools / llvm-dlltool / coff-weak-exports.def
blobb08040e29fa42ec96440ce382de4bc7dde07fdf3
1 ; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
2 ; RUN: llvm-nm %t.a | FileCheck %s
3 ; RUN: llvm-readobj %t.a | FileCheck -check-prefix=ARCH %s
4 ; RUN: llvm-readobj --symbols %t.a | FileCheck -check-prefix=SYMBOLS %s
6 LIBRARY test.dll
7 EXPORTS
8 AltTestFunction
9 AltTestFunction2
10 AltTestData
11 TestFunction==AltTestFunction
12 TestData DATA == AltTestData
13 ; When creating an import library, the DLL internal function name of
14 ; the implementation of a function isn't visible at all.
15 ImpLibName = Implementation
16 ; A different import library name and implementation name can be mixed
17 ; with exposing it via a different name in the DLL than in code.
18 ImpLibName2 = Implementation2 == AltTestFunction2
19 ; The fact that a DLL export entry is a forward to a different DLL doesn't
20 ; matter for the import library
21 ImpLibName3 = kernel32.Sleep
23 ; CHECK: T AltTestFunction
24 ; CHECK-NEXT: T __imp_AltTestFunction
25 ; CHECK: T AltTestFunction2
26 ; CHECK-NEXT: T __imp_AltTestFunction2
27 ; CHECK: T ImpLibName
28 ; CHECK-NEXT: T __imp_ImpLibName
29 ; CHECK: T ImpLibName3
30 ; CHECK-NEXT: T __imp_ImpLibName3
31 ; CHECK: U AltTestFunction
32 ; CHECK-NEXT: W TestFunction
33 ; CHECK: U __imp_AltTestFunction
34 ; CHECK-NEXT: W __imp_TestFunction
35 ; CHECK-NOT: W TestData
36 ; CHECK: U __imp_AltTestData
37 ; CHECK-NEXT: W __imp_TestData
38 ; CHECK: U AltTestFunction2
39 ; CHECK-NEXT: W ImpLibName2
40 ; CHECK: U __imp_AltTestFunction2
41 ; CHECK-NEXT: W __imp_ImpLibName2
43 ; ARCH-NOT: unknown arch
45 ; SYMBOLS: Symbol {
46 ; SYMBOLS: Name: TestFunction
47 ; SYMBOLS-NEXT: Value: 0
48 ; SYMBOLS-NEXT: Section: IMAGE_SYM_UNDEFINED (0)
49 ; SYMBOLS-NEXT: BaseType: Null (0x0)
50 ; SYMBOLS-NEXT: ComplexType: Null (0x0)
51 ; SYMBOLS-NEXT: StorageClass: WeakExternal (0x69)
52 ; SYMBOLS-NEXT: AuxSymbolCount: 1
53 ; SYMBOLS-NEXT: AuxWeakExternal {
54 ; SYMBOLS-NEXT: Linked: AltTestFunction (2)
55 ; SYMBOLS-NEXT: Search: Alias (0x3)
56 ; SYMBOLS-NEXT: }
57 ; SYMBOLS-NEXT: }