Searched refs:NonLiteral (Results 1 – 9 of 9) sorted by relevance
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p3.cpp | 12 struct NonLiteral { // expected-note 3{{no constexpr constructors}} struct 13 NonLiteral() {} in NonLiteral() argument 14 NonLiteral(int) {} in NonLiteral() argument 30 struct T : SS, NonLiteral { 42 …constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr functio… in NonLiteralReturn() 48 typedef NonLiteral F() const; 52 …constexpr int NonLiteralParam(NonLiteral) const { return 0; } // expected-error {{constexpr functi… in NonLiteralParam() 53 typedef int G(NonLiteral) const; 139 …NonLiteral nl; // expected-error {{variable of non-literal type 'NonLiteral' cannot be defined in … in DisallowedStmtsCXX1Y_4() 186 NonLiteral nl; [all …]
|
D | p6.cpp | 11 struct NonLiteral { struct 12 NonLiteral() {} in NonLiteral() function 13 NonLiteral(int) {} // expected-note 2{{here}} in NonLiteral() function 38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expe… 45 constexpr ConstexprCtor<NonLiteral> f3() { return { 0 }; } // expected-error {{never produces a con… in f3() 46 constexpr ConstexprCtor<int, NonLiteral> f4() { return { 0, 0 }; } // expected-error {{never produc… in f4()
|
D | p4.cpp | 12 struct NonLiteral { // expected-note 2{{no constexpr constructors}} struct 13 NonLiteral() {} in NonLiteral() function 14 NonLiteral(int) {} in NonLiteral() function 26 …constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter ty… in S() 27 …constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter typ… in S()
|
/external/clang/test/SemaCXX/ |
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");
|
D | cxx1y-deduced-return-type.cpp | 271 struct NonLiteral { ~NonLiteral(); } nl; // expected-note {{user-provided destructor}} struct
|
D | constant-expression-cxx11.cpp | 878 struct NonLiteral { struct 879 NonLiteral(); 882 constexpr int k = NonLiteral().f(); // expected-error {{constant expression}} expected-note {{non-l…
|
/external/clang/test/CXX/drs/ |
D | dr16xx.cpp | 12 struct NonLiteral { // expected-note {{because}} struct 13 NonLiteral(); 16 constexpr int f(NonLiteral &) { return 0; } in f() argument 17 constexpr int f(NonLiteral) { return 0; } // expected-error {{not a literal type}} in f() argument
|
/external/clang/test/CXX/basic/basic.types/ |
D | p10.cpp | 4 struct NonLiteral { NonLiteral(); }; struct 90 constexpr int f(CtorArg<NonLiteral>) { return 0; } // ok, ctor is still constexpr in f() argument 123 constexpr int f(MemberType<NonLiteral>) { return 0; } // expected-error {{not a literal type}} in f() argument
|
/external/clang/test/CXX/special/class.inhctor/ |
D | p2.cpp | 67 struct NonLiteral { NonLiteral(); }; struct 71 struct BothNonLiteral : NonLiteral, Constexpr { using Constexpr::Constexpr; }; // expected-note {{b…
|