Searched refs:NonTDtor1 (Results 1 – 2 of 2) sorted by relevance
33 struct NonTDtor1 { struct35 NonTDtor1() = default; argument36 ~NonTDtor1() { ++count; } in ~NonTDtor1() argument38 int NonTDtor1::count = 0;39 static_assert(!std::is_trivially_destructible<NonTDtor1>::value, "");54 using V = std::variant<NonTDtor, int, NonTDtor1>; in main()59 assert(NonTDtor1::count == 0); in main()62 assert(NonTDtor1::count == 0); in main()66 assert(NonTDtor1::count == 0); in main()70 assert(NonTDtor1::count == 0); in main()[all …]
32 struct NonTDtor1 { struct34 NonTDtor1() = default; argument35 ~NonTDtor1() { ++count; } in ~NonTDtor1() argument37 int NonTDtor1::count = 0;38 static_assert(!std::is_trivially_destructible<NonTDtor1>::value, "");53 using V = std::variant<NonTDtor, int, NonTDtor1>; in main()58 assert(NonTDtor1::count == 0); in main()61 assert(NonTDtor1::count == 0); in main()65 assert(NonTDtor1::count == 0); in main()69 assert(NonTDtor1::count == 0); in main()[all …]