Searched refs:TestCtor (Results 1 – 2 of 2) sorted by relevance
290 struct TestCtor { struct291 constexpr TestCtor(int x) : value(x) {} in TestCtor() function295 ATTR TestCtor<NotC> t(42); // expected-error {{variable does not have a constant initializer}} argument321 struct TestCtor { struct322 constexpr TestCtor(int x) : value(x) {} // expected-note 2 {{non-constexpr constructor}} in TestCtor() argument335 constexpr TestCtor<NotC> inval_constexpr(42); // expected-error {{must be initialized by a constant… argument337 ATTR constexpr TestCtor<NotC> inval_constexpr2(42); // expected-error {{must be initialized by a co…
373 struct TestCtor { struct376 TestCtor() = default;378 constexpr TestCtor(int, U u = U::current()) : ctor_info(u) {} in TestCtor() function381 constexpr TestCtor<> Default; in ctor_tests()382 constexpr TestCtor<> Template{42}; in ctor_tests()