Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/variant/variant.variant/variant.dtor/
Ddtor.pass.cpp33 struct NonTDtor1 { struct
35 NonTDtor1() = default; argument
36 ~NonTDtor1() { ++count; } in ~NonTDtor1() argument
38 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 …]
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.dtor/
Ddtor.pass.cpp32 struct NonTDtor1 { struct
34 NonTDtor1() = default; argument
35 ~NonTDtor1() { ++count; } in ~NonTDtor1() argument
37 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 …]