blob: 76f4f8b27cb19f2b0015524e71c1910cff6a29a4 [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
16// ASAN: "{{.*}}clang_rt.asan-i386.lib"
17// ASAN: "{{.*}}cl-link{{.*}}.obj"