Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / export-weak-alias.s
blob5fc505f309b92ee73c803c5740f24599e749bb45
1 # REQUIRES: x86
2 # RUN: llvm-mc -triple x86_64-windows-msvc %s -o %t.obj -filetype=obj
3 # RUN: lld-link %t.obj -out:%t.dll -dll -nodefaultlib -noentry
4 # RUN: llvm-nm %t.lib | FileCheck %s
6 # CHECK: export-weak-alias.s.tmp.dll:
7 # CHECK: 00000000 T __imp_foo_dll{{$}}
8 # CHECK: 00000000 T foo_dll{{$}}
10 .text
11 .def @feat.00;
12 .scl 3;
13 .type 0;
14 .endef
15 .globl @feat.00
16 .set @feat.00, 0
17 .file "t.c"
18 .def foo_def;
19 .scl 2;
20 .type 32;
21 .endef
22 .globl foo_def # -- Begin function foo_def
23 .p2align 4, 0x90
24 foo_def: # @foo_def
25 # %bb.0: # %entry
26 movl $42, %eax
27 retq
28 # -- End function
29 .section .drectve,"yn"
30 .ascii " /alternatename:foo=foo_def"
31 .ascii " /export:foo_dll=foo"
33 .addrsig