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(const tuple& u) = default;
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 = t0;
28 }
29
30 return 0;
31}
32

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