diff options
author | Reid Kleckner <rnk@google.com> | 2019-03-18 23:03:46 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-03-18 23:03:46 +0000 |
commit | ed350f73c1dc4a2eab13fc1d08d3ba3fcd0573fb (patch) | |
tree | 3c6427f13748a2f74437d47d1df8329f177794dd | |
parent | 61c9b7cb9ffbfc54077adfa158727523514e2ec0 (diff) | |
download | bcm5719-llvm-ed350f73c1dc4a2eab13fc1d08d3ba3fcd0573fb.tar.gz bcm5719-llvm-ed350f73c1dc4a2eab13fc1d08d3ba3fcd0573fb.zip |
[asan] Disable -Wfortify-source in intentional OOB tests
Needed after r356397
llvm-svn: 356426
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc | 4 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc index a5981fa5b2d..53cb7ef1cce 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc @@ -1,9 +1,9 @@ // RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s // Test that it works correctly even with ICF enabled. -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF +// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc index 4baa0a1610f..51096e4bb30 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc @@ -1,9 +1,9 @@ // RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s // Test that it works correctly even with ICF enabled. -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF +// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> |