Home
last modified time | relevance | path

Searched defs: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() argument
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() function
335 constexpr TestCtor<NotC> inval_constexpr(42); // expected-error {{must be initialized by a constant… argument
H A Dsource_location.cpp373 struct TestCtor { struct
378 constexpr TestCtor(int, U u = U::current()) : ctor_info(u) {} in TestCtor() function
384 …static_assert(is_equal(Default.info.function(), "test_func::TestCtor<>::TestCtor() [T = std::sourc… in ctor_tests()