HomeSort by relevance Sort by last modified time
    Searched refs:NonLiteral (Results 1 - 5 of 5) sorted by null

  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p3.cpp 11 struct NonLiteral { // expected-note 2{{no constexpr constructors}}
12 NonLiteral() {}
13 NonLiteral(int) {}
29 struct T : SS, NonLiteral { // expected-note {{base class 'NonLiteral' of non-literal type}}
39 constexpr NonLiteral NonLiteralReturn() { return {}; } // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}}
42 typedef NonLiteral F();
46 constexpr int NonLiteralParam(NonLiteral) { return 0; } // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}
    [all...]
p6.cpp 11 struct NonLiteral {
12 NonLiteral() {}
13 NonLiteral(int) {} // expected-note 2{{here}}
38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{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}}
p4.cpp 11 struct NonLiteral { // expected-note 2{{no constexpr constructors}}
12 NonLiteral() {}
13 NonLiteral(int) {}
25 constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
26 constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
  /external/clang/test/SemaCXX/
literal-type.cpp 41 struct NonLiteral { NonLiteral(); };
42 struct HasNonLiteralBase : NonLiteral {};
48 static_assert(!__is_literal(NonLiteral), "fail");
77 static_assert(__is_literal(HasConstExprCtorT<NonLiteral>), "fail");
  /external/clang/test/CXX/basic/basic.types/
p10.cpp 3 struct NonLiteral { NonLiteral(); };
85 constexpr int f(CtorArg<NonLiteral>) { return 0; } // ok, ctor is still constexpr
114 T t; // expected-note {{'MemberType<NonLiteral>' is not literal because it has data member 't' of non-literal type 'NonLiteral'}}
118 constexpr int f(MemberType<NonLiteral>) { return 0; } // expected-error {{not a literal type}}

Completed in 367 milliseconds