//===----------------------------------------------------------------------===// // // 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 const&); // UNSUPPORTED: c++98, c++03 #include #include struct ExplicitCopy { explicit ExplicitCopy(int) {} explicit ExplicitCopy(ExplicitCopy const&) {} }; std::tuple const_explicit_copy_test() { const std::tuple t1(42); return {std::allocator_arg, std::allocator{}, t1}; // expected-error@-1 {{chosen constructor is explicit in copy-initialization}} } std::tuple non_const_explicit_copy_test() { std::tuple t1(42); return {std::allocator_arg, std::allocator{}, t1}; // expected-error@-1 {{chosen constructor is explicit in copy-initialization}} } int main() { }