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
9// <tuple>
10
11// template <class... Types> class tuple;
12
13// tuple& operator=(const tuple& u);
14
15// UNSUPPORTED: c++03
16
17#include <tuple>
18#include <cassert>
19
20#include "MoveOnly.h"
21
22int main(int, char**)
23{
24 {
25 typedef std::tuple<MoveOnly> T;
26 T t0(MoveOnly(2));
27 T t;
28 t = t0;
29 }
30
31 return 0;
32}
33

source code of libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/copy.compile.fail.cpp