Hans Wennborg | 2e27459 | 2013-08-13 23:38:57 +0000 | [diff] [blame] | 1 | // 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 Wennborg | 65f1752 | 2013-08-27 18:10:21 +0000 | [diff] [blame] | 8 | // 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 Wennborg | 0517e75 | 2013-08-28 17:36:07 +0000 | [diff] [blame] | 16 | // ASAN: "-debug" |
Hans Wennborg | d024c1c | 2013-08-30 10:50:52 +0000 | [diff] [blame^] | 17 | // ASAN: "-incremental:no" |
Hans Wennborg | 65f1752 | 2013-08-27 18:10:21 +0000 | [diff] [blame] | 18 | // ASAN: "{{.*}}clang_rt.asan-i386.lib" |
| 19 | // ASAN: "{{.*}}cl-link{{.*}}.obj" |