diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | 952eddef9aff85b1e92626e89baaf7a360e2ac85 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Driver/cl-link.c | |
parent | ea266cad53e3d49771fa38103913d3ec7a166694 (diff) | |
download | FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.zip FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.tar.gz |
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841
Diffstat (limited to 'test/Driver/cl-link.c')
-rw-r--r-- | test/Driver/cl-link.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/Driver/cl-link.c b/test/Driver/cl-link.c new file mode 100644 index 0000000..24e0702 --- /dev/null +++ b/test/Driver/cl-link.c @@ -0,0 +1,33 @@ +// 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. + +// 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 +// ASAN: "-debug" +// ASAN: "-incremental:no" +// ASAN: "{{.*}}clang_rt.asan-i386.lib" +// ASAN: "{{.*}}cl-link{{.*}}.obj" + +// 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 +// 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" +// ASAN-DLL: "{{.*}}clang_rt.asan_dll_thunk-i386.lib" +// ASAN-DLL: "{{.*}}cl-link{{.*}}.obj" |