Lines Matching defs:NonLit
488 struct NonLit { NonLit(); operator int(); }; // #cwg1358-NonLit
503 A<NonLit, NonLit, Virt> a = NonLit();
504 void g() { a.f(NonLit()); }
515 constexpr B(NonLit u) : member(u) {}
516 // cxx11-20-error@-1 {{constexpr constructor's 1st parameter type 'NonLit' is not a literal type}}
517 // cxx11-20-note@#cwg1358-NonLit {{'NonLit' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors}}
518 constexpr NonLit f(NonLit u) const { return NonLit(); }
519 // cxx11-20-error@-1 {{constexpr function's return type 'NonLit' is not a literal type}}
520 // cxx11-20-note@#cwg1358-NonLit {{'NonLit' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors}}