Searched refs:NonLit (Results 1 – 4 of 4) sorted by relevance
30 constexpr NonLit() : value(0) {} in NonLit() argument31 constexpr NonLit(int x) : value(x) {} in NonLit() function34 NonLit(int x) : value(x) {}37 ~NonLit() {} in ~NonLit() argument50 NonLit obj; argument186 ATTR static const NonLit non_lit;204 const NonLit TT2::non_lit(42);208 const NonLit TT2::non_lit_copy_init = 42;218 ATTR NonLit nl_ctor;219 ATTR NonLit nl_ctor2{};[all …]
21 struct NonLit { ~NonLit(); }; //expected-note{{not literal}} struct22 auto L = [](NonLit NL) constexpr { }; //expected-error{{not a literal type}} in __anonf09465ed0202()
4 struct NonLit { // expected-note 3{{no constexpr constructors}} struct5 NonLit();19 static const NonLit h = NonLit(); // expected-error {{must be initialized out of line}}41 …static constexpr NonLit h = NonLit(); // expected-error {{cannot have non-literal type 'const NonL…49 U<NonLit> u2; // expected-note {{here}}53 constexpr int outofline = (U<NonLit>::d, 0); // expected-note {{here}}
283 struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}} struct298 A<NonLit, NonLit, Virt> a = NonLit();299 void g() { a.f(NonLit()); } in g()310 constexpr B(NonLit u) : member(u) {} // expected-error {{not a literal type}} in B()311 constexpr NonLit f(NonLit u) const { return NonLit(); } // expected-error {{not a literal type}} in f()