From f5ff11c432e4b463686e46e613f6f1eeeb27ce8e Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 15 Jun 2016 19:07:19 +0000 Subject: Suppress warnings about the operations currently under test. llvm-svn: 272819 --- libcxxabi/test/catch_ptr.pass.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcxxabi/test/catch_ptr.pass.cpp') 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 #include +// 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; -- cgit v1.2.3