You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
432B

  1. #include <memory>
  2. struct Large {
  3. size_t x;
  4. char filler[512 - sizeof(size_t)] = {};
  5. Large(size_t x) : x(x) {}
  6. };
  7. void* forward_raw(void* p);
  8. std::unique_ptr<size_t> forward_unique(std::unique_ptr<size_t>&& p);
  9. std::shared_ptr<size_t> forward_shared(std::shared_ptr<size_t>&& p);
  10. std::unique_ptr<Large> forward_unique_large(std::unique_ptr<Large>&& p);
  11. std::shared_ptr<Large> forward_shared_large(std::shared_ptr<Large>&& p);