blob: bc0d8296bd9c7273f0bef5c7123f606e70220137 [file] [log] [blame]
// PR c++/97517
// { dg-do compile { target c++20 } }
// Test that we print "decltype(nullptr)" correctly.
template<typename T> struct Trait { static constexpr bool value = false; };
template<typename T> concept Concept = Trait<T>::value; // { dg-message {\[with T = std::nullptr_t\]} }
static_assert( Concept<decltype(nullptr)> ); // { dg-error "static assertion failed" }
// { dg-message "constraints not satisfied" "" { target *-*-* } .-1 }