brintos

brintos / llvm-project-archived public Read only

0
0
Text · 681 B · 20e166c Raw
32 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// <tuple>10 11// template <class... Types> class tuple;12 13// tuple(const tuple& u) = default;14 15// UNSUPPORTED: c++0316 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