copy.fail.cpp 688 B

12345678910111213141516171819202122232425262728293031
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. // <tuple>
  9. // template <class... Types> class tuple;
  10. // tuple(const tuple& u) = default;
  11. // UNSUPPORTED: c++98, c++03
  12. #include <tuple>
  13. #include <cassert>
  14. #include "MoveOnly.h"
  15. int main(int, char**)
  16. {
  17. {
  18. typedef std::tuple<MoveOnly> T;
  19. T t0(MoveOnly(2));
  20. T t = t0;
  21. }
  22. return 0;
  23. }