summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp5
-rw-r--r--libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp b/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
index 52433d2f9c4..0d9115d0f69 100644
--- a/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
+++ b/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
@@ -7,6 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// Prevent emission of the deprecated warning.
+#ifdef __clang__
+#pragma clang diagnostic ignored "-W#warnings"
+#endif
+
#include <ext/hash_map>
namespace __gnu_cxx {
diff --git a/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp b/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
index dc127e92095..5fd4bde66e0 100644
--- a/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
+++ b/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
@@ -7,6 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// Prevent emission of the deprecated warning.
+#ifdef __clang__
+#pragma clang diagnostic ignored "-W#warnings"
+#endif
+
#include <ext/hash_set>
namespace __gnu_cxx {
OpenPOWER on IntegriCloud