| 3 | #include <iostream> |
| 4 | #include <memory> |
| 5 | int main() { |
| 6 | auto i1 = std::unique_ptr<short> { |
| 7 | new short(12345) |
| 8 | }; |
| 9 | const auto i2 = std::unique_ptr<short> { |
| 10 | new short(*i1) |
| 11 | }; |
| 12 | const auto i3 = move(i1); |
| 13 | std::cout << (bool)i1 << " " << (bool)i2 << " " |
| 14 | << (bool)i3 << " " << *i2 << " " << *i3; |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected