summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-12-04 16:18:03 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-12-04 16:18:03 +0000
commit3e127d984f91a8195d019ed27fd89bea3e898594 (patch)
treedccabd2656a13911af499d93cc8dfb7537b4671e
parent6f3fa20c763b4eba0c915efc146b2cf40dc13e77 (diff)
downloadbcm5719-llvm-3e127d984f91a8195d019ed27fd89bea3e898594.tar.gz
bcm5719-llvm-3e127d984f91a8195d019ed27fd89bea3e898594.zip
[PS4] Add an additional test for ASan+UBSan
llvm-svn: 254723
-rw-r--r--clang/test/Driver/fsanitize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/fsanitize.c b/clang/test/Driver/fsanitize.c
index 3b67ceeae0a..bb9aaf480bb 100644
--- a/clang/test/Driver/fsanitize.c
+++ b/clang/test/Driver/fsanitize.c
@@ -311,3 +311,7 @@
// CHECK-MSAN-PS4: unsupported option '-fsanitize=memory' for target 'x86_64-scei-ps4'
// RUN: %clang -target x86_64-scei-ps4 -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-PS4
// CHECK-TSAN-PS4: unsupported option '-fsanitize=thread' for target 'x86_64-scei-ps4'
+// RUN: %clang -target x86_64-scei-ps4 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-PS4
+// Make sure there are no *.{o,bc} or -l passed before the ASan library.
+// CHECK-ASAN-PS4-NOT: {{(\.(o|bc)"? |-l).*-lSceDbgAddressSanitizer_stub_weak}}
+// CHECK-ASAN-PS4: -lSceDbgAddressSanitizer_stub_weak
OpenPOWER on IntegriCloud