summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-12-12 15:36:34 -0500
committerEric Fiselier <eric@efcs.ca>2019-12-12 15:37:06 -0500
commit27ec4abeac4dae65a307c4eb206110ba8c2ca2ce (patch)
treea353b2fbbc49a226208aacff52e6d49463249a36
parentc8e0bb3b2c24ef59556d81a275fb1f5db64899d3 (diff)
downloadbcm5719-llvm-27ec4abeac4dae65a307c4eb206110ba8c2ca2ce.tar.gz
bcm5719-llvm-27ec4abeac4dae65a307c4eb206110ba8c2ca2ce.zip
[libc++] Add check to ensure oss-fuzz properly targets libc++.
-rw-r--r--libcxx/fuzzing/fuzzing.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/fuzzing/fuzzing.cpp b/libcxx/fuzzing/fuzzing.cpp
index d036f0cbb8b..7e58dba0c27 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.
OpenPOWER on IntegriCloud