copy.fail.cpp 700 B

1234567891011121314151617181920212223242526272829303132
  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& operator=(const tuple& u);
  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;
  21. t = t0;
  22. }
  23. return 0;
  24. }