//
//===----------------------------------------------------------------------===//
-// UNSUPPORTED: c++03,
+// UNSUPPORTED: c++03
// UNSUPPORTED: no-exceptions
#include <cassert>
+#include <cstddef>
#include <cstdlib>
+#include <type_traits>
struct A {};
int main(int, char**)
{
- using nullptr_t = decltype(nullptr);
+ static_assert(std::is_same<std::nullptr_t, decltype(nullptr)>::value, "");
// A reference to nullptr_t can catch nullptr.
- catch_nullptr_test<nullptr_t, true>();
- catch_nullptr_test<const nullptr_t, true>();
- catch_nullptr_test<volatile nullptr_t, true>();
- catch_nullptr_test<const volatile nullptr_t, true>();
+ catch_nullptr_test<std::nullptr_t, true>();
+ catch_nullptr_test<const std::nullptr_t, true>();
+ catch_nullptr_test<volatile std::nullptr_t, true>();
+ catch_nullptr_test<const volatile std::nullptr_t, true>();
// No other reference type can.
#if 0