1 // { dg-do compile { target c++11 } }
5 #define IS_LIT(T) (std::is_literal_type<T>::value)
6 #define SA(X) static_assert (X, #X)
7 #define YES(T) SA(IS_LIT(T))
8 #define NO(T) SA(!IS_LIT(T))
23 YES(decltype (nullptr));
25 YES(void (Literal::*)());
31 YES(NotLiteral NotLiteral::*);
32 YES(NotLiteral (NotLiteral::*)(NotLiteral));
35 A(const A&) = default;
39 NO(A); // no constexpr ctor other than copy