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