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"
|
2014-05-13 04:20:20 +08:00
|
|
|
// ASAN: "{{.*}}clang_rt.asan_cxx-i386.lib"
|
2013-08-28 02:10:21 +08:00
|
|
|
// ASAN: "{{.*}}cl-link{{.*}}.obj"
|
2013-09-11 04:18:04 +08:00
|
|
|
|
2014-08-26 18:08:24 +08:00
|
|
|
// RUN: %clang_cl /MD /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-MD %s
|
|
|
|
// ASAN-MD: link.exe
|
|
|
|
// ASAN-MD: "-debug"
|
|
|
|
// ASAN-MD: "-incremental:no"
|
|
|
|
// ASAN-MD: "{{.*}}clang_rt.asan_dynamic-i386.lib"
|
2014-09-12 21:47:44 +08:00
|
|
|
// ASAN-MD: "{{.*}}clang_rt.asan_dynamic_runtime_thunk-i386.lib"
|
2014-09-12 22:01:30 +08:00
|
|
|
// ASAN-MD: "-include:___asan_seh_interceptor"
|
2014-08-26 18:08:24 +08:00
|
|
|
// ASAN-MD: "{{.*}}cl-link{{.*}}.obj"
|
|
|
|
|
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"
|
2014-04-26 00:24:19 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cl /Zi /Tc%s -### 2>&1 | FileCheck --check-prefix=DEBUG %s
|
|
|
|
// DEBUG: link.exe
|
|
|
|
// DEBUG: "-debug"
|