Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/variant/variant.variant/variant.dtor/
Ddtor.pass.cpp25 struct NonTDtor { struct
27 NonTDtor() = default; argument
28 ~NonTDtor() { ++count; } in ~NonTDtor() argument
30 int NonTDtor::count = 0;
31 static_assert(!std::is_trivially_destructible<NonTDtor>::value, "");
54 using V = std::variant<NonTDtor, int, NonTDtor1>; in main()
58 assert(NonTDtor::count == 0); in main()
61 assert(NonTDtor::count == 1); in main()
63 NonTDtor::count = 0; in main()
65 assert(NonTDtor::count == 0); in main()
[all …]