From 712196b75e9766ff08622a5bbb0e76e1a64ae092 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Fri, 4 Dec 2015 16:18:03 +0000 Subject: [PATCH] [PS4] Add an additional test for ASan+UBSan git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254723 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/fsanitize.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Driver/fsanitize.c b/test/Driver/fsanitize.c index 3b67ceeae0..bb9aaf480b 100644 --- a/test/Driver/fsanitize.c +++ b/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 -- 2.40.0