copy.fail.cpp 663 B

12345678910111213141516171819202122232425262728293031
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // <tuple>
  10. // template <class... Types> class tuple;
  11. // tuple& operator=(const tuple& u);
  12. // UNSUPPORTED: c++98, c++03
  13. #include <tuple>
  14. #include <cassert>
  15. #include "MoveOnly.h"
  16. int main()
  17. {
  18. {
  19. typedef std::tuple<MoveOnly> T;
  20. T t0(MoveOnly(2));
  21. T t;
  22. t = t0;
  23. }
  24. }