1REQUIRES: lld, system-windows 2 3RUN: %build -n --verbose --arch=32 --compiler=clang-cl --mode=compile-and-link -o %t/foo.exe foobar.c \ 4RUN: | FileCheck --check-prefix=CHECK-32 %s 5 6RUN: %build -n --verbose --arch=64 --compiler=clang-cl --mode=compile-and-link -o %t/foo.exe foobar.c \ 7RUN: | FileCheck --check-prefix=CHECK-64 %s 8 9CHECK-32: Script Arguments: 10CHECK-32: Arch: 32 11CHECK-32: Compiler: clang-cl 12CHECK-32: Outdir: {{.*}} 13CHECK-32: Output: {{.*}}toolchain-clang-cl.test.tmp\foo.exe 14CHECK-32: Nodefaultlib: False 15CHECK-32: Opt: none 16CHECK-32: Mode: compile 17CHECK-32: Clean: True 18CHECK-32: Verbose: True 19CHECK-32: Dryrun: True 20CHECK-32: Inputs: foobar.c 21CHECK-32: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foobar.ilk 22CHECK-32: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.exe-foobar.obj 23CHECK-32: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.pdb 24CHECK-32: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.exe 25CHECK-32: compiling foobar.c -> foo.exe-foobar.obj 26CHECK-32: {{.*}}clang-cl{{(.exe)?}} -m32 27CHECK-32: linking foo.exe-foobar.obj -> foo.exe 28CHECK-32: {{.*}}lld-link 29 30CHECK-64: Script Arguments: 31CHECK-64: Arch: 64 32CHECK-64: Compiler: clang-cl 33CHECK-64: Outdir: {{.*}} 34CHECK-64: Output: {{.*}}toolchain-clang-cl.test.tmp\foo.exe 35CHECK-64: Nodefaultlib: False 36CHECK-64: Opt: none 37CHECK-64: Mode: compile 38CHECK-64: Clean: True 39CHECK-64: Verbose: True 40CHECK-64: Dryrun: True 41CHECK-64: Inputs: foobar.c 42CHECK-64: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foobar.ilk 43CHECK-64: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.exe-foobar.obj 44CHECK-64: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.pdb 45CHECK-64: Cleaning {{.*}}toolchain-clang-cl.test.tmp{{.}}foo.exe 46CHECK-64: compiling foobar.c -> foo.exe-foobar.obj 47CHECK-64: {{.*}}clang-cl{{(.exe)?}} -m64 48CHECK-64: linking foo.exe-foobar.obj -> foo.exe 49CHECK-64: {{.*}}lld-link{{(.exe)?}} 50