summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/inherited_exception.pass.cpp
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 /libcxxabi/test/inherited_exception.pass.cpp
parent9d305d707e990a11a30799476930701bb88e67d1 (diff)
downloadbcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.tar.gz
bcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.zip
Suppress warnings about the operations currently under test.
llvm-svn: 272819
Diffstat (limited to 'libcxxabi/test/inherited_exception.pass.cpp')
-rw-r--r--libcxxabi/test/inherited_exception.pass.cpp7
1 files changed, 7 insertions, 0 deletions
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