blob: b6d14d6dff784d8bce7ca2bf520d937873790e7d [file] [log] [blame]
Hans Wennborg2e274592013-08-13 23:38:57 +00001// Don't attempt slash switches on msys bash.
2// REQUIRES: shell-preserves-root
3
4// Note: %s must be preceded by -- or bound to another option, otherwise it may
5// be interpreted as a command-line option, e.g. on Mac where %s is commonly
6// under /Users.
7
Hans Wennborg65f17522013-08-27 18:10:21 +00008// RUN: %clang_cl /Tc%s -### /link foo bar baz 2>&1 | FileCheck --check-prefix=LINK %s
9// LINK: link.exe
10// LINK: "foo"
11// LINK: "bar"
12// LINK: "baz"
13
14// RUN: %clang_cl /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN %s
15// ASAN: link.exe
Hans Wennborg0517e752013-08-28 17:36:07 +000016// ASAN: "-debug"
Hans Wennborg65f17522013-08-27 18:10:21 +000017// ASAN: "{{.*}}clang_rt.asan-i386.lib"
18// ASAN: "{{.*}}cl-link{{.*}}.obj"