[libcxx-commits] [libcxx] 27ec4ab - [libc++] Add check to ensure oss-fuzz properly targets libc++.

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 12 12:37:14 PST 2019


Author: Eric Fiselier
Date: 2019-12-12T15:37:06-05:00
New Revision: 27ec4abeac4dae65a307c4eb206110ba8c2ca2ce

URL: https://github.com/llvm/llvm-project/commit/27ec4abeac4dae65a307c4eb206110ba8c2ca2ce
DIFF: https://github.com/llvm/llvm-project/commit/27ec4abeac4dae65a307c4eb206110ba8c2ca2ce.diff

LOG: [libc++] Add check to ensure oss-fuzz properly targets libc++.

Added: 
    

Modified: 
    libcxx/fuzzing/fuzzing.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/fuzzing/fuzzing.cpp b/libcxx/fuzzing/fuzzing.cpp
index d036f0cbb8b8..7e58dba0c27f 100644
--- a/libcxx/fuzzing/fuzzing.cpp
+++ b/libcxx/fuzzing/fuzzing.cpp
@@ -39,6 +39,10 @@
 #include <cassert>
 //  If we had C++14, we could use the four iterator version of is_permutation and equal
 
+#ifndef _LIBCPP_VERSION
+#error These test should be built with libc++ only.
+#endif
+
 namespace fuzzing {
 
 //  This is a struct we can use to test the stable_XXX algorithms.


        


More information about the libcxx-commits mailing list