Home
last modified time | relevance | path

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

/external/llvm-project/clang/test/SemaCXX/
Dattr-require-constant-initialization.cpp28 struct NonLit { // expected-note 0+ {{declared here}} struct
30 constexpr NonLit() : value(0) {} in NonLit() argument
31 constexpr NonLit(int x) : value(x) {} in NonLit() argument
33 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() function
37 ~NonLit() {} in ~NonLit() argument
50 NonLit obj; argument
103 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 …]
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 __anon4326b1ad0202()
/external/clang/test/CXX/class/class.static/class.static.data/
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}} expected-warning {{unused}}
/external/llvm-project/clang/test/CXX/class/class.static/class.static.data/
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}}
/external/clang/test/SemaCXX/
Dcxx1z-constexpr-lambdas.cpp9 struct NonLit { ~NonLit(); }; //expected-note{{not literal}} struct
10 auto L = [](NonLit NL) constexpr { }; //expected-error{{not a literal type}} in __anonb54b17df0102()
/external/llvm-project/clang/test/CXX/drs/
Ddr13xx.cpp273 struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}} struct
288 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()