Searched refs:NonLit (Results 1 – 6 of 6) sorted by relevance
28 struct NonLit { // expected-note 0+ {{declared here}} struct30 constexpr NonLit() : value(0) {} in NonLit() argument31 constexpr NonLit(int x) : value(x) {} in NonLit() argument33 NonLit() : value(0) {} // expected-note 0+ {{declared here}}34 NonLit(int x) : value(x) {}36 NonLit(void *) : value(-1) {} // expected-note 0+ {{declared here}} in NonLit() function37 ~NonLit() {} in ~NonLit() argument50 NonLit obj; argument103 ATTR const NonLit &nl_temp_ref = 42; // expected-error {{variable does not have a constant initiali…116 ATTR const int &nl_subobj_ref = NonLit().value; // expected-error {{variable does not have a consta…[all …]
21 struct NonLit { ~NonLit(); }; //expected-note{{not literal}} struct22 auto L = [](NonLit NL) constexpr { }; //expected-error{{not a literal type}} in __anon4326b1ad0202()
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}} expected-warning {{unused}}
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}}
9 struct NonLit { ~NonLit(); }; //expected-note{{not literal}} struct10 auto L = [](NonLit NL) constexpr { }; //expected-error{{not a literal type}} in __anonb54b17df0102()
273 struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}} struct288 A<NonLit, NonLit, Virt> a = NonLit();289 void g() { a.f(NonLit()); } in g()300 constexpr B(NonLit u) : member(u) {} // expected-error {{not a literal type}} in B()301 constexpr NonLit f(NonLit u) const { return NonLit(); } // expected-error {{not a literal type}} in f()