From a3d337a9a7d00d82bb190c5e551181d3998f6b98 Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Wed, 25 Sep 2019 09:10:38 +0000 Subject: Revert r372777: [libc++] Implement LWG 2510 and its follow-ups This also reverts: - r372778: [libc++] Implement LWG 3158 - r372782: [libc++] Try fixing tests that fail on GCC 5 and older - r372787: Purge mentions of GCC 4 from the test suite Reason: the change breaks compilation of LLVM with libc++, for details see http://lists.llvm.org/pipermail/libcxx-dev/2019-September/000599.html llvm-svn: 372832 --- .../tuple/tuple.tuple/tuple.cnstr/default.fail.cpp | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp (limited to 'libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp') diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp deleted file mode 100644 index 616550f60e5..00000000000 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp +++ /dev/null @@ -1,53 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: c++98, c++03 - -// Before GCC 6, aggregate initialization kicks in. -// See https://stackoverflow.com/q/41799015/627587. -// UNSUPPORTED: gcc-5 - -// - -// template class tuple; - -// explicit(see-below) constexpr tuple(); - -#include - - -struct Implicit { - Implicit() = default; -}; - -struct Explicit { - explicit Explicit() = default; -}; - -std::tuple<> test1() { return {}; } - -std::tuple test2() { return {}; } -std::tuple test3() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} - -std::tuple test4() { return {}; } -std::tuple test5() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test6() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test7() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} - -std::tuple test8() { return {}; } -std::tuple test9() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test10() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test11() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test12() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test13() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test14() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} -std::tuple test15() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} - -int main(int, char**) { - return 0; -} -- cgit v1.2.3