2013-08-14 07:38:57 +08:00
|
|
|
// Don't attempt slash switches on msys bash.
|
|
|
|
// REQUIRES: shell-preserves-root
|
|
|
|
|
|
|
|
// Note: %s must be preceded by -- or bound to another option, otherwise it may
|
|
|
|
// be interpreted as a command-line option, e.g. on Mac where %s is commonly
|
|
|
|
// under /Users.
|
|
|
|
|
2013-08-28 02:10:21 +08:00
|
|
|
// RUN: %clang_cl /Tc%s -### /link foo bar baz 2>&1 | FileCheck --check-prefix=LINK %s
|
|
|
|
// LINK: link.exe
|
|
|
|
// LINK: "foo"
|
|
|
|
// LINK: "bar"
|
|
|
|
// LINK: "baz"
|
|
|
|
|
|
|
|
// RUN: %clang_cl /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN %s
|
|
|
|
// ASAN: link.exe
|
2013-08-29 01:36:07 +08:00
|
|
|
// ASAN: "-debug"
|
2013-08-30 18:50:52 +08:00
|
|
|
// ASAN: "-incremental:no"
|
2013-08-28 02:10:21 +08:00
|
|
|
// ASAN: "{{.*}}clang_rt.asan-i386.lib"
|
|
|
|
// ASAN: "{{.*}}cl-link{{.*}}.obj"
|
2013-09-11 04:18:04 +08:00
|
|
|
|
2013-09-11 04:53:34 +08:00
|
|
|
// RUN: %clang_cl /LD -### /Tc%s 2>&1 | FileCheck --check-prefix=DLL %s
|
|
|
|
// RUN: %clang_cl /LDd -### /Tc%s 2>&1 | FileCheck --check-prefix=DLL %s
|
2013-09-11 04:18:04 +08:00
|
|
|
// DLL: link.exe
|
|
|
|
// "-dll"
|
|
|
|
|
|
|
|
// RUN: %clang_cl /LD /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s
|
|
|
|
// RUN: %clang_cl /LDd /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s
|
|
|
|
// ASAN-DLL: link.exe
|
|
|
|
// ASAN-DLL: "-dll"
|
|
|
|
// ASAN-DLL: "-debug"
|
|
|
|
// ASAN-DLL: "-incremental:no"
|
2013-09-11 19:45:31 +08:00
|
|
|
// ASAN-DLL: "{{.*}}clang_rt.asan_dll_thunk-i386.lib"
|
2013-09-11 04:18:04 +08:00
|
|
|
// ASAN-DLL: "{{.*}}cl-link{{.*}}.obj"
|