diff --git a/libcxxabi/test/catch_reference_nullptr.pass.cpp b/libcxxabi/test/catch_reference_nullptr.pass.cpp --- a/libcxxabi/test/catch_reference_nullptr.pass.cpp +++ b/libcxxabi/test/catch_reference_nullptr.pass.cpp @@ -6,11 +6,13 @@ // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++03, +// UNSUPPORTED: c++03 // UNSUPPORTED: no-exceptions #include +#include #include +#include struct A {}; @@ -27,13 +29,13 @@ int main(int, char**) { - using nullptr_t = decltype(nullptr); + static_assert(std::is_same::value, ""); // A reference to nullptr_t can catch nullptr. - catch_nullptr_test(); - catch_nullptr_test(); - catch_nullptr_test(); - catch_nullptr_test(); + catch_nullptr_test(); + catch_nullptr_test(); + catch_nullptr_test(); + catch_nullptr_test(); // No other reference type can. #if 0