/llvm-project/llvm/test/tools/llvm-objcopy/COFF/ |
H A D | subsystem.test | 1 ## Test the --subsystem option. 5 # RUN: llvm-objcopy --subsystem=posix:7.4 --subsystem windows %t.in.exe %t.out.exe 12 # WIN74: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 14 # RUN: llvm-objcopy --subsystem=posix:7.4 --subsystem windows:9 %t.in.exe %t.out.exe 21 # WIN90: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 23 # RUN: not llvm-objcopy --subsystem=foobar %t.in.exe %t.err.exe 2>&1 | FileCheck %s --check-prefix=INVALID-SUBSYS 25 # INVALID-SUBSYS: 'foobar' is not a valid subsystem{{$}} 27 # RUN: not llvm-objcopy --subsystem [all...] |
/llvm-project/lld/test/COFF/ |
H A D | icf-simple.test | 2 # RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \ 9 # RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ 12 # RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ 17 # RUN: lld-link /entry:foo /out:%t.exe /subsystem:console \ 22 # RUN: lld-link /debug /entry:foo /out:%t.exe /subsystem:console \ 27 # RUN: lld-link /profile /entry:foo /out:%t.exe /subsystem:console \ 32 # RUN: lld-link /opt:noref /entry:foo /out:%t.exe /subsystem:console \ 37 # RUN: lld-link /debug /opt:ref /entry:foo /out:%t.exe /subsystem:console \ 42 # RUN: lld-link /debug /opt:noicf,ref /entry:foo /out:%t.exe /subsystem:console \
|
H A D | subsystem.test | 1 # RUN: lld-link /entry:main /out:%t.exe /subsystem:windows \ 9 CHECK1: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 11 # RUN: lld-link /entry:main /out:%t.exe /subsystem:windows,8.9 \ 15 # RUN: lld-link /entry:main /out:%t.exe /subsystem:windows,8.09 \ 23 CHECK2: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 25 # RUN: lld-link /entry:main /out:%t.exe /subsystem:default,8.9 \ 43 # RUN: lld-link /entry:main /out:%t.exe /osversion:1.2 /subsystem:default,3.4 \
|
H A D | merge.test | 2 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 6 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 10 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 12 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 14 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 16 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 18 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 20 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \
|
H A D | implib-name.test | 5 …/machine:x64 /def:%S/Inputs/named.def /out:%T/library.dll %T/object.obj /entry:f /subsystem:CONSOLE 16 …/machine:x64 /def:%S/Inputs/named.def /out:%T/library.exe %T/object.obj /entry:f /subsystem:CONSOLE 24 …nk /dll /machine:x64 /def:%S/Inputs/extension.def /out:%T/extension.dll /entry:f /subsystem:CONSOLE 27 # RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def /out:%T/extension.exe /entry:f /subsystem… 38 …d-link /dll /machine:x64 /def:%S/Inputs/default.def /out:%T/default.dll /entry:f /subsystem:CONSOLE 49 …achine:x64 /def:%S/Inputs/default.def /out:%T/default.exe %T/object.obj /entry:f /subsystem:CONSOLE 57 # RUN: lld-link /machine:x64 /out:%T/default.exe %T/object.obj /entry:f /subsystem:CONSOLE 65 # RUN: lld-link /machine:x64 /dll /out:%T/default.dll %T/object.obj /entry:f /subsystem:CONSOLE 73 # RUN: lld-link /nologo /machine:x64 /out:%T/exe %T/object.obj /entry:f /subsystem:CONSOLE
|
H A D | machine.test | 2 # RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj 4 # RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x64 \ 11 # RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj 13 # RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x86 \ 20 # RUN: not lld-link /entry:main /subsystem:console /machine:x86 \ 26 # RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
|
H A D | subsystem-inference.test | 4 # RUN: lld-link /out:%t.exe %t.obj /subsystem:default,6.0 14 # RUN: lld-link /out:%t.exe %t.obj /subsystem:default,6.0 21 # MAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 22 # WMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 23 # WINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 24 # WWINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
H A D | nodefaultlib.test | 4 # RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \ 8 # RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \ 13 # RUN: /subsystem:console hello64.obj /defaultlib:std64.lib \ 18 # RUN: /subsystem:console hello64.obj /defaultlib:std64 \ 28 # RUN: /subsystem:console hello64.obj /defaultlib:std64.lib 31 # RUN: /subsystem:console hello64.obj /defaultlib:std64.lib
|
H A D | thinlto.ll | 6 ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/ma… 10 ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/ma… 12 ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/ma… 14 ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/ma… 16 ; RUN: not lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlt… 22 ; RUN: lld-link /lldsavetemps /out:%t.exe /entry:main /subsystem:console %T/thinlto/main.obj %t.lib
|
H A D | libpath.test | 7 # RUN: std64.lib /subsystem:console %p/Inputs/hello64.obj \ 14 # RUN: std64.lib /subsystem:console %p/Inputs/hello64.obj \ 21 # RUN: %t/a/std64.lib /subsystem:console %p/Inputs/hello64.obj \ 29 # RUN: std64.lib /subsystem:console %p/Inputs/hello64.obj \ 38 # RUN: std64.lib /subsystem:console %p/Inputs/hello64.obj \
|
H A D | linkrepro.test | 15 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ 23 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ 34 # RUN: /subsystem:console /entry:main@0 /out:%t.exe 44 # RUN: lld-link %t.obj /libpath:%p/Inputs /defaultlib:std32 /subsystem:console \ 59 # RUN: env LIB=%p/Inputs lld-link %t.obj /defaultlib:std32 /subsystem:console \ 78 # RSP: /subsystem:console 86 # RSP-DEFAULTLIB: /subsystem:console 95 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ 113 # RUN: lld-link %t.obj %t.dir/drectve.obj /libpath:%p/Inputs /subsystem:console \ 126 # RSP-DRECTVE: /subsystem [all...] |
H A D | entry-inference-mingw.s | 5 # RUN: lld-link -lldmingw %t.o -out:%t-cui.exe -subsystem:console 2>&1 | FileCheck -allow-empty -ch… 6 # RUN: lld-link -lldmingw %t.o -out:%t-gui.exe -subsystem:windows 2>&1 | FileCheck -allow-empty -ch… 16 # CUI: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3) 19 # GUI: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI (0x2)
|
H A D | wrap-lto-2.ll | 27 ; RUN: lld-link -out:%t.bc-bc.exe %t.main.bc -libpath:%T %t.bc.lib -entry:entry -subsystem:console … 31 ; RUN: lld-link -out:%t.bc-obj.exe %t.main.bc -libpath:%T %t.obj.lib -entry:entry -subsystem:consol… 35 ; RUN: lld-link -out:%t.obj-bc.exe %t.main.obj -libpath:%T %t.bc.lib -entry:entry -subsystem:consol… 39 ; RUN: lld-link -out:%t.thin-thin.exe %t.main.thin -libpath:%T %t.thin.lib -entry:entry -subsystem:… 43 ; RUN: lld-link -out:%t.thin-obj.exe %t.main.thin -libpath:%T %t.obj.lib -entry:entry -subsystem:co… 47 ; RUN: lld-link -out:%t.obj-thin.exe %t.main.obj -libpath:%T %t.thin.lib -entry:entry -subsystem:co…
|
H A D | subsystem-inference32.test | 17 # MAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 18 # WMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 19 # WINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI 20 # WWINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
H A D | section.test | 2 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 6 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 10 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 14 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \
|
H A D | failifmismatch.test | 3 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \ 6 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \ 9 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \ 12 RUN: env LLD_IN_TEST=1 not lld-link /entry:main /subsystem:console /out:%t.exe \
|
H A D | entry-inference4.test | 2 # RUN: not lld-link /subsystem:windows /out:%t.exe %t.obj > %t.log 2>&1 6 # RUN: not lld-link /subsystem:windows /out:%t.exe %t.obj > %t.log 2>&1 10 # RUN: not lld-link /subsystem:console /out:%t.exe %t.obj > %t.log 2>&1 14 # RUN: not lld-link /subsystem:console /out:%t.exe %t.obj > %t.log 2>&1
|
H A D | lto-comdat.ll | 16 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co… 19 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co… 26 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.obj %T/comdat… 29 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.obj %T/comdat… 36 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co… 39 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co…
|
H A D | lto.ll | 12 ; RUN: lld-link /out:%T/main.exe /entry:main /include:f2 /subsystem:console %T/main.lto.obj %T/foo.… 15 ; RUN: lld-link /out:%T/main.exe /entry:main /include:f2 /subsystem:console %T/main.lto.obj %T/foo.… 19 ; RUN: lld-link /out:%T/main.exe /entry:main /subsystem:console %T/main.obj %T/foo.lto.obj 22 ; RUN: lld-link /out:%T/main.exe /entry:main /subsystem:console %T/main.obj %T/foo.lto.lib 26 ; RUN: lld-link /out:%T/main.exe /entry:main /subsystem:console %T/main.lto.obj %T/foo.obj 29 ; RUN: lld-link /out:%T/main.exe /entry:main /subsystem:console %T/main.lto.obj %T/foo.lib
|
H A D | arm64-dynamicbase.s | 3 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no 2>&1 | Fil… 6 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:a… 8 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:a…
|
H A D | subsystem-inference-weak-external.s | 4 ## Ensure that weak externals are considered during subsystem inference. 13 # CUI: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 14 # GUI: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
H A D | order.test | 9 # RUN: lld-link -entry:fn1 -subsystem:console -opt:noref -debug %t1.obj %t2.obj \ 18 # RUN: lld-link -entry:fn1 -subsystem:console -opt:noref -debug %t1.obj %t2.obj \ 32 # RUN: lld-link -entry:fn1 -subsystem:console -debug %t1.obj %t2.obj \ 38 # RUN: lld-link -entry:fn1 -subsystem:console -debug %t1.obj %t2.obj \
|
H A D | lto-opt-level.ll | 3 ; RUN: lld-link /out:%t0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:%t0.map %t.obj 5 ; RUN: lld-link /out:%t2.exe /entry:main /subsystem:console /opt:lldlto=2 /lldmap:%t2.map %t.obj 7 ; RUN: lld-link /out:%t2a.exe /entry:main /subsystem:console /lldmap:%t2a.map %t.obj
|
/llvm-project/lld/test/MinGW/ |
H A D | driver.test | 69 RUN: ld.lld -### foo.o -m i386pep -subsystem console 2>&1 | FileCheck -check-prefix=SUBSYSTEM %s 70 RUN: ld.lld -### foo.o -m i386pep --subsystem console 2>&1 | FileCheck -check-prefix=SUBSYSTEM %s 71 RUN: ld.lld -### foo.o -m i386pep -subsystem=console 2>&1 | FileCheck -check-prefix=SUBSYSTEM %s 72 RUN: ld.lld -### foo.o -m i386pep --subsystem=console 2>&1 | FileCheck -check-prefix=SUBSYSTEM %s 73 SUBSYSTEM: -subsystem [all...] |
/llvm-project/lldb/unittests/Utility/ |
H A D | SubsystemRAIITest.cpp | 19 /// Start state of the subsystem. 46 SubsystemRAII<TestSubsystem> subsystem; in TEST() local 70 /// Reset the subsystem to the default state for testing. 85 SubsystemRAII<TestSubsystemWithError> subsystem; in TEST() local 97 EXPECT_FATAL_FAILURE(SubsystemRAII<TestSubsystemWithError> subsystem, in TEST()
|