//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template class tuple; // template // tuple(allocator_arg_t, const Alloc& a, tuple&&); // UNSUPPORTED: c++98, c++03 #include #include struct ExplicitCopy { explicit ExplicitCopy(int) {} explicit ExplicitCopy(ExplicitCopy const&) {} }; std::tuple explicit_move_test() { std::tuple t1(42); return {std::allocator_arg, std::allocator{}, std::move(t1)}; // expected-error@-1 {{chosen constructor is explicit in copy-initialization}} } int main() { }