summaryrefslogtreecommitdiff
path: root/test/catch_class_04.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
commitdf448d87f13d2e02602666c0819ab235818d9b12 (patch)
treeb72abd23867b53f5538cd02ac5c3942fec81ee2f /test/catch_class_04.pass.cpp
parent6fd0d958b55fbbefeb5e1fb78cdc086eddb92a43 (diff)
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
Diffstat (limited to 'test/catch_class_04.pass.cpp')
-rw-r--r--test/catch_class_04.pass.cpp7
1 files changed, 7 insertions, 0 deletions
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;