| /llvm-project-15.0.7/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 14 # RUN: llvm-objcopy --subsystem=posix:7.4 --subsystem windows:9 %t.in.exe %t.out.exe 23 # RUN: not llvm-objcopy --subsystem=foobar %t.in.exe %t.err.exe 2>&1 | FileCheck %s --check-prefix=… 25 # INVALID-SUBSYS: 'foobar' is not a valid subsystem{{$}} 27 # RUN: not llvm-objcopy --subsystem=windows:foo %t.in.exe %t.err.exe 2>&1 | FileCheck %s --check-pr… 28 # RUN: not llvm-objcopy --subsystem=windows:8.bar %t.in.exe %t.err.exe 2>&1 | FileCheck %s --check-… 30 # INVALID-MAJOR-NUMBER: 'foo' is not a valid subsystem major version 31 # INVALID-MINOR-NUMBER: 'bar' is not a valid subsystem minor version
|
| H A D | pe-fields.test | 5 # RUN: not llvm-objcopy --subsystem windows %t.in.obj %t.out.obj 2>&1 | FileCheck %s -DFILE=%t.out.… 7 # CHECK: '[[FILE]]': unable to set subsystem on a relocatable object file
|
| /llvm-project-15.0.7/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 | 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 | 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 | 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 | subsystem.test | 1 # RUN: lld-link /entry:main /out:%t.exe /subsystem:windows \ 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 \ 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 | 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
|
| 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 | 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 | linkrepro.test | 12 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ 20 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ 31 # RUN: /subsystem:console /entry:main@0 /out:%t.exe 41 # RUN: lld-link %t.obj /libpath:%p/Inputs /defaultlib:std32 /subsystem:console \ 56 # RUN: env LIB=%p/Inputs lld-link %t.obj /defaultlib:std32 /subsystem:console \ 73 # RSP: /subsystem:console 85 # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \
|
| 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 | 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
|
| H A D | alternatename.test | 2 # RUN: lld-link /entry:foo /subsystem:console \ 4 # RUN: lld-link /entry:foo /subsystem:console \ 11 # RUN: lld-link /entry:foo /subsystem:console /out:%t.exe %t.obj
|
| 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 | string-tail-merge.s | 3 # RUN: lld-link %t.obj /out:%t.exe /entry:main /subsystem:console 5 # RUN: lld-link %t.obj /out:%t.exe /entry:main /subsystem:console /opt:noicf /opt:lldtailmerge 7 # RUN: lld-link %t.obj /out:%t.exe /entry:main /subsystem:console /opt:noicf 9 # RUN: lld-link %t.obj /out:%t.exe /entry:main /subsystem:console /opt:nolldtailmerge
|
| 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 | noimplib.test | 8 …%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /noimplib 13 …%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /implib:… 19 …%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /implib:…
|
| H A D | implib-name-mingw.test | 12 …:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console 16 …:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console 19 …%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console -implib:…
|
| 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.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 | 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…
|
| /llvm-project-15.0.7/lld/test/MinGW/ |
| H A D | driver.test | 64 SUBSYSTEM: -subsystem:console 68 OS_VERSION: -osversion:7.8 -subsystem:default,6.0 70 RUN: ld.lld -### foo.o -m i386pep --major-subsystem-version 7 --minor-subsystem-version 8 2>&1 | Fi… 75 SUBSYSTEM_DEFAULT_MAJOR: -subsystem:default,6.8 78 SUBSYSTEM_DEFAULT_MINOR: -subsystem:default,7.0 80 RUN: ld.lld -### foo.o -m i386pep --subsystem windows --major-subsystem-version 7 --minor-subsystem… 81 RUN: ld.lld -### foo.o -m i386pep --major-subsystem-version 7 --minor-subsystem-version 8 --subsyst… 83 RUN: ld.lld -### foo.o -m i386pep --subsystem windows:2.3 --major-subsystem-version 7 --minor-subsy… 85 RUN: ld.lld -### foo.o -m i386pep --major-subsystem-version 2 --minor-subsystem-version 3 --subsyst… 86 RUN: ld.lld -### foo.o -m i386pep --major-subsystem-version 2 --minor-subsystem-version 8 --subsyst… [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | SubsystemRAIITest.cpp | 46 SubsystemRAII<TestSubsystem> subsystem; in TEST() local 85 SubsystemRAII<TestSubsystemWithError> subsystem; in TEST() local 97 EXPECT_FATAL_FAILURE(SubsystemRAII<TestSubsystemWithError> subsystem, in TEST()
|