blob: ce7e245adfe828330d4641226852e550a0c8ea02 [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
9// CHECK: ||
10// CHECK: cl.exe
11// CHECK: "/c"
12// CHECK: "/W0"
13// CHECK: "-D" "foo=bar"
14// CHECK: "-U" "baz"
15// CHECK: "-I" "foo"
16// CHECK: "-O3"
17// CHECK: "/GR-"
18// CHECK: "/LD"
19// CHECK: "/LDd"
20// CHECK: "/MT"
21// CHECK: "/Tc" "{{.*cl-fallback.c}}"
22// CHECK: "/Fo{{.*cl-fallback.*.obj}}"