summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/catch_reference_nullptr.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/test/catch_reference_nullptr.pass.cpp')
-rw-r--r--libcxxabi/test/catch_reference_nullptr.pass.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxxabi/test/catch_reference_nullptr.pass.cpp b/libcxxabi/test/catch_reference_nullptr.pass.cpp
index 0e7955fa266..3ab520f77b2 100644
--- a/libcxxabi/test/catch_reference_nullptr.pass.cpp
+++ b/libcxxabi/test/catch_reference_nullptr.pass.cpp
@@ -12,6 +12,12 @@
#include <cassert>
#include <cstdlib>
+// Clang emits a warning on converting an object of type nullptr_t to bool,
+// even in generic code. Suppress it.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wnull-conversion"
+#endif
+
struct A {};
template<typename T, bool CanCatchNullptr>
OpenPOWER on IntegriCloud