[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / exclude-all.s
blobf1977836b18cfc5dff398a3b53aa87b584aa12b8
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj
5 # RUN: lld-link -lldmingw -exclude-all-symbols -dll -out:%t.dll -entry:DllMainCRTStartup@12 %t.obj
6 # RUN: llvm-readobj --coff-exports %t.dll | FileCheck %s -check-prefix=NO-EXPORTS
8 # NO-EXPORTS-NOT: Name:
10 .global _foobar
11 .global _DllMainCRTStartup@12
12 .global _dataSym
13 .text
14 _DllMainCRTStartup@12:
15 ret
16 _foobar:
17 ret
18 .data
19 _dataSym:
20 .int 4
22 # Test specifying -exclude-all-symbols, on an object file that contains
23 # dllexport directive for some of the symbols. In this case, the dllexported
24 # symbols are still exported.
26 # RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
28 # RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -exclude-all-symbols -output-def:%t.def
29 # RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=DLLEXPORT %s
31 # DLLEXPORT: Name: exportfn3