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