Lines Matching defs:NonLiteral
25 class NonLiteral { // expected-note {{'NonLiteral' is not literal because it is not an aggregate and has no constexpr constructors}}
27 NonLiteral() {}
28 ~NonLiteral() {} // expected-note {{declared here}}
31 constexpr NonLiteral F1() {
32 return NonLiteral{};
35 constexpr int F2(NonLiteral N) { // expected-note {{non-constexpr function '~NonLiteral' cannot be used in a constant expression}}
39 class Derived : public NonLiteral {
43 class Derived1 : public NonLiteral {
44 constexpr Derived1() : NonLiteral () {}
108 constexpr auto C = F1(); // expected-error {{constexpr variable cannot have non-literal type 'const NonLiteral'}}
110 NonLiteral L;