diff options
Diffstat (limited to 'libcxxabi/test/catch_const_pointer_nullptr.pass.cpp')
-rw-r--r-- | libcxxabi/test/catch_const_pointer_nullptr.pass.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 {}; |