Home
last modified time | relevance | path

Searched refs:ConstexprCtor (Results 1 – 3 of 3) sorted by relevance

/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp6.cpp40 template<typename ...P> struct ConstexprCtor { struct
41 constexpr ConstexprCtor(P...) {} in ConstexprCtor() argument
43 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()
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp6.cpp40 template<typename ...P> struct ConstexprCtor { struct
41 constexpr ConstexprCtor(P...) {} in ConstexprCtor() function
43 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()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc709 TEST(StringPieceTest, ConstexprCtor) { in TEST() argument