summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-link.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-08-27 18:10:21 +0000
committerHans Wennborg <hans@hanshq.net>2013-08-27 18:10:21 +0000
commit65f17528755639a97fec9a1077b63d54864dc02d (patch)
tree00e3ef1a68bc4dd15db8fa0342768af3790c8e62 /clang/test/Driver/cl-link.c
parente6d165ccb4fdecdfa5f8815b33e4074348f32a03 (diff)
downloadbcm5719-llvm-65f17528755639a97fec9a1077b63d54864dc02d.tar.gz
bcm5719-llvm-65f17528755639a97fec9a1077b63d54864dc02d.zip
clang-cl: Support -fsanitize=address
This exposes the -fsanitize=address option and adds the runtime library to the link command. Differential Revision: http://llvm-reviews.chandlerc.com/D1526 llvm-svn: 189389
Diffstat (limited to 'clang/test/Driver/cl-link.c')
-rw-r--r--clang/test/Driver/cl-link.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/clang/test/Driver/cl-link.c b/clang/test/Driver/cl-link.c
index 6de089ba0c9..76f4f8b27cb 100644
--- a/clang/test/Driver/cl-link.c
+++ b/clang/test/Driver/cl-link.c
@@ -5,8 +5,13 @@
// 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 %s
-// CHECK: link.exe
-// CHECK: "foo"
-// CHECK: "bar"
-// CHECK: "baz"
+// 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: "{{.*}}clang_rt.asan-i386.lib"
+// ASAN: "{{.*}}cl-link{{.*}}.obj"
OpenPOWER on IntegriCloud