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:
11 .global _DllMainCRTStartup@12
14 _DllMainCRTStartup@
12:
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