blob: 1a0d7e01fe0c9fb40a17ecefb41acc8a5899ad59 [file] [log] [blame]
Hans Wennborgc8ba0a02013-09-19 20:32:16 +00001// Don't attempt slash switches on msys bash.
2// REQUIRES: shell-preserves-root
3
4// Note: %s must be preceded by --, otherwise it may be interpreted as a
5// command-line option, e.g. on Mac where %s is commonly under /Users.
6
7// RUN: %clang_cl /fallback /Dfoo=bar /Ubaz /Ifoo /O0 /Ox /GR /GR- /LD /LDd \
8// RUN: /MD /MDd /MTd /MT -### -- %s 2>&1 | FileCheck %s
Hans Wennborg89e32742013-09-24 00:08:55 +00009// CHECK: "-fdiagnostics-format" "msvc-fallback"
Hans Wennborgc8ba0a02013-09-19 20:32:16 +000010// CHECK: ||
11// CHECK: cl.exe
12// CHECK: "/c"
13// CHECK: "/W0"
14// CHECK: "-D" "foo=bar"
15// CHECK: "-U" "baz"
16// CHECK: "-I" "foo"
17// CHECK: "-O3"
18// CHECK: "/GR-"
19// CHECK: "/LD"
20// CHECK: "/LDd"
21// CHECK: "/MT"
22// CHECK: "/Tc" "{{.*cl-fallback.c}}"
23// CHECK: "/Fo{{.*cl-fallback.*.obj}}"