Home
last modified time | relevance | path

Searched refs:NonLit (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dattr-require-constant-initialization.cpp30 constexpr NonLit() : value(0) {} in NonLit() argument
31 constexpr NonLit(int x) : value(x) {} in NonLit() function
34 NonLit(int x) : value(x) {}
37 ~NonLit() {} in ~NonLit() argument
50 NonLit obj; argument
186 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 …]
H A Dcxx1z-constexpr-lambdas.cpp21 struct NonLit { ~NonLit(); }; //expected-note{{not literal}} struct
22 auto L = [](NonLit NL) constexpr { }; //expected-error{{not a literal type}} in __anonf09465ed0202()
/llvm-project-15.0.7/clang/test/CXX/class/class.static/class.static.data/
H A Dp3.cpp4 struct NonLit { // expected-note 3{{no constexpr constructors}} struct
5 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}}
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr13xx.cpp283 struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}} struct
298 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()