diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-09-25 09:10:38 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-09-25 09:10:38 +0000 |
commit | a3d337a9a7d00d82bb190c5e551181d3998f6b98 (patch) | |
tree | 24894b738fba0f734957c9af632f5bc1f584276f /libcxx/test/std/language.support | |
parent | 436d9881a9a87b2c4177831435e85c8f47ce9ab1 (diff) | |
download | bcm5719-llvm-a3d337a9a7d00d82bb190c5e551181d3998f6b98.tar.gz bcm5719-llvm-a3d337a9a7d00d82bb190c5e551181d3998f6b98.zip |
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
Diffstat (limited to 'libcxx/test/std/language.support')
4 files changed, 8 insertions, 53 deletions
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp index c4e10715f27..d69c28be72b 100644 --- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp +++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp @@ -15,6 +15,10 @@ // (except clang-3.6 which temporarily enabled sized-deallocation) // UNSUPPORTED: clang, apple-clang +// NOTE: GCC 4.9.1 does not support sized-deallocation in C++14. However +// GCC 5.1 does. +// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9 + #include <new> #include <cstddef> #include <cstdlib> diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp index 819d62ae2fb..deb17d1ae74 100644 --- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp +++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp @@ -15,6 +15,10 @@ // (except clang-3.6 which temporarily enabled sized-deallocation) // UNSUPPORTED: clang, apple-clang +// NOTE: GCC 4.9.1 does not support sized-deallocation in C++14. However +// GCC 5.1 does. +// XFAIL: gcc-4.7, gcc-4.8, gcc-4.9 + #include <new> #include <cstddef> #include <cstdlib> diff --git a/libcxx/test/std/language.support/support.dynamic/nothrow_t.fail.cpp b/libcxx/test/std/language.support/support.dynamic/nothrow_t.fail.cpp deleted file mode 100644 index 78ab087c3ea..00000000000 --- a/libcxx/test/std/language.support/support.dynamic/nothrow_t.fail.cpp +++ /dev/null @@ -1,30 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: c++98, c++03 - -// Before GCC 6, aggregate initialization kicks in. -// See https://stackoverflow.com/q/41799015/627587. -// UNSUPPORTED: gcc-5 - -// struct nothrow_t { -// explicit nothrow_t() = default; -// }; -// extern const nothrow_t nothrow; - -// This test checks for LWG 2510. - -#include <new> - - -std::nothrow_t f() { return {}; } // expected-error 1 {{chosen constructor is explicit in copy-initialization}} - -int main(int, char**) { - return 0; -} diff --git a/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp b/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp deleted file mode 100644 index 3a6231329f0..00000000000 --- a/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp +++ /dev/null @@ -1,23 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// struct nothrow_t { -// explicit nothrow_t() = default; -// }; -// extern const nothrow_t nothrow; - -#include <new> - - -int main(int, char**) { - std::nothrow_t x = std::nothrow; - (void)x; - - return 0; -} |