summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-15 19:07:19 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-15 19:07:19 +0000
commitf5ff11c432e4b463686e46e613f6f1eeeb27ce8e (patch)
treed83c7d7adae597a20fdf67b557dd0141b81b853c
parent9d305d707e990a11a30799476930701bb88e67d1 (diff)
downloadbcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.tar.gz
bcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.zip
Suppress warnings about the operations currently under test.
llvm-svn: 272819
-rw-r--r--libcxxabi/test/catch_class_03.pass.cpp7
-rw-r--r--libcxxabi/test/catch_class_04.pass.cpp7
-rw-r--r--libcxxabi/test/catch_const_pointer_nullptr.pass.cpp7
-rw-r--r--libcxxabi/test/catch_ptr.pass.cpp7
-rw-r--r--libcxxabi/test/catch_ptr_02.pass.cpp7
-rw-r--r--libcxxabi/test/dynamic_cast3.pass.cpp6
-rw-r--r--libcxxabi/test/dynamic_cast5.pass.cpp6
-rw-r--r--libcxxabi/test/inherited_exception.pass.cpp7
8 files changed, 54 insertions, 0 deletions
diff --git a/libcxxabi/test/catch_class_03.pass.cpp b/libcxxabi/test/catch_class_03.pass.cpp
index f038f798e21..72bc492b112 100644
--- a/libcxxabi/test/catch_class_03.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/catch_class_04.pass.cpp b/libcxxabi/test/catch_class_04.pass.cpp
index 444b1de59d1..b1aafd568a8 100644
--- a/libcxxabi/test/catch_class_04.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/catch_const_pointer_nullptr.pass.cpp b/libcxxabi/test/catch_const_pointer_nullptr.pass.cpp
index 6e86f3685c2..3d8f0d13a76 100644
--- a/libcxxabi/test/catch_const_pointer_nullptr.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/catch_ptr.pass.cpp b/libcxxabi/test/catch_ptr.pass.cpp
index 6f85d6370b5..c7b63f9346f 100644
--- a/libcxxabi/test/catch_ptr.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/catch_ptr_02.pass.cpp b/libcxxabi/test/catch_ptr_02.pass.cpp
index a58474b99c4..44bf2e2af51 100644
--- a/libcxxabi/test/catch_ptr_02.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/dynamic_cast3.pass.cpp b/libcxxabi/test/dynamic_cast3.pass.cpp
index afd4ad87469..375b4678990 100644
--- a/libcxxabi/test/dynamic_cast3.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/dynamic_cast5.pass.cpp b/libcxxabi/test/dynamic_cast5.pass.cpp
index d7064f4b4de..51e5e92855c 100644
--- a/libcxxabi/test/dynamic_cast5.pass.cpp
+++ b/libcxxabi/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/libcxxabi/test/inherited_exception.pass.cpp b/libcxxabi/test/inherited_exception.pass.cpp
index 763e26a434f..993c83c82fe 100644
--- a/libcxxabi/test/inherited_exception.pass.cpp
+++ b/libcxxabi/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 {
OpenPOWER on IntegriCloud