| 83 | not std::is_trivially_destructible_v<Not_TriviallyDestructible>); |
| 84 | |
| 85 | int main() |
| 86 | { |
| 87 | #if not defined(__clang__) && not defined(_MSC_VER) && \ |
| 88 | not(defined(__GNUC__) && !defined(__clang__)) |
| 89 | static_assert( |
| 90 | not std::is_copy_constructible_v<optional<NotCopyable>>); |
| 91 | static_assert(std::is_copy_constructible_v<optional<int>>); |
| 92 | |
| 93 | static_assert(not std::is_trivially_destructible_v< |
| 94 | optional<Not_TriviallyDestructible>>); |
| 95 | static_assert(std::is_trivially_destructible_v<optional<int>>); |
| 96 | |
| 97 | optional<Not_TriviallyDestructible> no{}; |
| 98 | optional<COMLike> o{}; |
| 99 | |
| 100 | #else |
| 101 | # pragma message("not supported") |
| 102 | #endif |
| 103 | } |
nothing calls this directly
no outgoing calls
no test coverage detected