Searched refs:ConstexprCtor (Results 1 – 3 of 3) sorted by relevance
40 template<typename ...P> struct ConstexprCtor { struct41 constexpr ConstexprCtor(P...) {} in ConstexprCtor() argument43 constexpr ConstexprCtor<> f1() { return {}; } // ok in f1()44 constexpr ConstexprCtor<int> f2() { return 0; } // ok in f2()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()
40 template<typename ...P> struct ConstexprCtor { struct41 constexpr ConstexprCtor(P...) {} in ConstexprCtor() function43 constexpr ConstexprCtor<> f1() { return {}; } // ok in f1()44 constexpr ConstexprCtor<int> f2() { return 0; } // ok in f2()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()
709 TEST(StringPieceTest, ConstexprCtor) { in TEST() argument