[asan] Disable -Wfortify-source in intentional OOB tests
authorReid Kleckner <rnk@google.com>
Mon, 18 Mar 2019 23:03:46 +0000 (23:03 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 18 Mar 2019 23:03:46 +0000 (23:03 +0000)
Needed after r356397

llvm-svn: 356426

compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc
compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc

index a5981fa5b2d527070d759e20be3c3e51b79c4ec9..53cb7ef1cce561dfb0f78a62b4e8c85771196ea1 100644 (file)
@@ -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>
index 4baa0a1610f9e006f0bad08d8649f25708d0d50a..51096e4bb301d22eb2345b0b317306328170a57a 100644 (file)
@@ -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>