Suppress warnings about the operations currently under test.

git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@272819 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/catch_class_03.pass.cpp b/test/catch_class_03.pass.cpp
index f038f79..72bc492 100644
--- a/test/catch_class_03.pass.cpp
+++ b/test/catch_class_03.pass.cpp
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;
diff --git a/test/catch_class_04.pass.cpp b/test/catch_class_04.pass.cpp
index 444b1de..b1aafd5 100644
--- a/test/catch_class_04.pass.cpp
+++ b/test/catch_class_04.pass.cpp
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;
diff --git a/test/catch_const_pointer_nullptr.pass.cpp b/test/catch_const_pointer_nullptr.pass.cpp
index 6e86f36..3d8f0d1 100644
--- a/test/catch_const_pointer_nullptr.pass.cpp
+++ b/test/catch_const_pointer_nullptr.pass.cpp
@@ -11,6 +11,13 @@
 
 #include <cassert>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #if __has_feature(cxx_nullptr)
 
 struct A {};
diff --git a/test/catch_ptr.pass.cpp b/test/catch_ptr.pass.cpp
index 6f85d63..c7b63f9 100644
--- a/test/catch_ptr.pass.cpp
+++ b/test/catch_ptr.pass.cpp
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;
diff --git a/test/catch_ptr_02.pass.cpp b/test/catch_ptr_02.pass.cpp
index a58474b..44bf2e2 100644
--- a/test/catch_ptr_02.pass.cpp
+++ b/test/catch_ptr_02.pass.cpp
@@ -11,6 +11,13 @@
 
 #include <cassert>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #if __cplusplus < 201103L
 #define DISABLE_NULLPTR_TESTS
 #endif
diff --git a/test/dynamic_cast3.pass.cpp b/test/dynamic_cast3.pass.cpp
index afd4ad8..375b467 100644
--- a/test/dynamic_cast3.pass.cpp
+++ b/test/dynamic_cast3.pass.cpp
@@ -10,6 +10,12 @@
 #include <cassert>
 #include "support/timer.hpp"
 
+// This test explicitly tests dynamic cast with types that have inaccessible
+// bases.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Winaccessible-base"
+#endif
+
 /*
 
 A1   A2   A3
diff --git a/test/dynamic_cast5.pass.cpp b/test/dynamic_cast5.pass.cpp
index d7064f4..51e5e92 100644
--- a/test/dynamic_cast5.pass.cpp
+++ b/test/dynamic_cast5.pass.cpp
@@ -10,6 +10,12 @@
 #include <cassert>
 #include "support/timer.hpp"
 
+// This test explicitly tests dynamic cast with types that have inaccessible
+// bases.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Winaccessible-base"
+#endif
+
 namespace t1
 {
 
diff --git a/test/inherited_exception.pass.cpp b/test/inherited_exception.pass.cpp
index 763e26a..993c83c 100644
--- a/test/inherited_exception.pass.cpp
+++ b/test/inherited_exception.pass.cpp
@@ -27,6 +27,13 @@
 
 // UNSUPPORTED: libcxxabi-no-exceptions
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #include <assert.h>
 
 struct Base {