Home
last modified time | relevance | path

Searched refs:TestCtor (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dattr-require-constant-initialization.cpp290 struct TestCtor { struct
291 constexpr TestCtor(int x) : value(x) {} in TestCtor() function
295 ATTR TestCtor<NotC> t(42); // expected-error {{variable does not have a constant initializer}} argument
321 struct TestCtor { struct
322 constexpr TestCtor(int x) : value(x) {} // expected-note 2 {{non-constexpr constructor}} in TestCtor() argument
335 constexpr TestCtor<NotC> inval_constexpr(42); // expected-error {{must be initialized by a constant… argument
337 ATTR constexpr TestCtor<NotC> inval_constexpr2(42); // expected-error {{must be initialized by a co…
H A Dsource_location.cpp373 struct TestCtor { struct
376 TestCtor() = default;
378 constexpr TestCtor(int, U u = U::current()) : ctor_info(u) {} in TestCtor() function
381 constexpr TestCtor<> Default; in ctor_tests()
382 constexpr TestCtor<> Template{42}; in ctor_tests()