Searched refs:NonLiteral (Results 1 - 10 of 10) sorted by relevance
/external/clang/test/CXX/drs/ |
H A D | dr16xx.cpp | 12 struct NonLiteral { // expected-note {{because}} struct in namespace:dr1684 13 NonLiteral(); 16 constexpr int f(NonLiteral &) { return 0; } 17 constexpr int f(NonLiteral) { return 0; } // expected-error {{not a literal type}}
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
H A D | p6.cpp | 11 struct NonLiteral { struct 12 NonLiteral() {} function in struct:NonLiteral 13 NonLiteral(int) {} // expected-note 2{{here}} function in struct:NonLiteral 38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expected-note {{non-literal type 'const NonLiteral' cannot be used in a constant expression}} 45 constexpr ConstexprCtor<NonLiteral> f3() { return { 0 }; } // expected-error {{never produces a constant expression}} expected-note {{non-constexpr constructor 'NonLiteral}} 46 constexpr ConstexprCtor<int, NonLiteral> f4() { return { 0, 0 }; } // expected-error {{never produces a constant expression}} expected-note {{non-constexpr constructor 'NonLiteral}}
|
H A D | p3.cpp | 12 struct NonLiteral { // expected-note 3{{no constexpr constructors}} struct 13 NonLiteral() {} function in struct:NonLiteral 14 NonLiteral(int) {} function in struct:NonLiteral 30 struct T : SS, NonLiteral { 42 constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}} 48 typedef NonLiteral F() const; 52 constexpr int NonLiteralParam(NonLiteral) const { return 0; } // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}} 53 typedef int G(NonLiteral) cons [all...] |
H A D | p4.cpp | 12 struct NonLiteral { // expected-note 2{{no constexpr constructors}} struct 13 NonLiteral() {} function in struct:NonLiteral 14 NonLiteral(int) {} function in struct:NonLiteral 26 constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}} 27 constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
|
/external/clang/test/SemaCXX/ |
H A D | literal-type.cpp | 41 struct NonLiteral { NonLiteral(); }; struct 42 struct HasNonLiteralBase : NonLiteral {}; 48 static_assert(!__is_literal(NonLiteral), "fail"); 77 static_assert(__is_literal(HasConstExprCtorT<NonLiteral>), "fail");
|
H A D | cxx1y-deduced-return-type.cpp | 271 struct NonLiteral { ~NonLiteral(); } nl; // expected-note {{user-provided destructor}} struct in namespace:Constexpr 272 constexpr auto f2(int n) { return nl; } // expected-error {{return type 'Constexpr::NonLiteral' is not a literal type}}
|
H A D | constant-expression-cxx11.cpp | 878 struct NonLiteral { 879 NonLiteral(); 882 constexpr int k = NonLiteral().f(); // expected-error {{constant expression}} expected-note {{non-literal type 'Temporaries::NonLiteral'}}
|
/external/clang/test/CXX/basic/basic.types/ |
H A D | p10.cpp | 4 struct NonLiteral { NonLiteral(); }; struct 90 constexpr int f(CtorArg<NonLiteral>) { return 0; } // ok, ctor is still constexpr 119 T t; // expected-note {{'MemberType<NonLiteral>' is not literal because it has data member 't' of non-literal type 'NonLiteral'}} 123 constexpr int f(MemberType<NonLiteral>) { return 0; } // expected-error {{not a literal type}}
|
/external/clang/test/CXX/special/class.inhctor/ |
H A D | p2.cpp | 67 struct NonLiteral { NonLiteral(); }; struct 71 struct BothNonLiteral : NonLiteral, Constexpr { using Constexpr::Constexpr; }; // expected-note {{base class 'NonLiteral' of non-literal type}}
|
/external/guice/extensions/struts2/lib/ |
H A D | jsp-2.1.jar | META-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/jasper/ org/apache/jasper/resources/ ... |
Completed in 337 milliseconds