Skip to content

Commit

Permalink
[libc++] Remove test-suite annotations for unsupported Clang versions
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D108471
  • Loading branch information
ldionne committed Aug 20, 2021
1 parent 9807626 commit 5425106
Show file tree
Hide file tree
Showing 140 changed files with 58 additions and 306 deletions.
Expand Up @@ -17,7 +17,6 @@
// random_shuffle(RandomAccessIterator first, RandomAccessIterator last,
// RandomNumberGenerator& rand);

// UNSUPPORTED: clang-4.0
// UNSUPPORTED: c++03, c++11

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE
Expand Down
3 changes: 1 addition & 2 deletions libcxx/test/libcxx/atomics/ext-int.verify.cpp
Expand Up @@ -12,8 +12,7 @@
// disable them for now until their behavior can be designed better later.
// See https://reviews.llvm.org/D84049 for details.

// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// UNSUPPORTED: apple-clang-9, apple-clang-10, apple-clang-11, apple-clang-12
// UNSUPPORTED: apple-clang-12

// UNSUPPORTED: libcpp-has-no-threads
// UNSUPPORTED: c++03
Expand Down
Expand Up @@ -13,9 +13,6 @@
// newer.
// UNSUPPORTED: c++11

// Clang doesn't support filename wildcards in verify tests until 05eedf1f5b44.
// UNSUPPORTED: clang-10

// <unordered_set>

// Test that we generate a reasonable diagnostic when the specified hash is
Expand Down
Expand Up @@ -18,7 +18,6 @@
//
// Deprecated in C++11

// UNSUPPORTED: clang-4.0
// UNSUPPORTED: c++03

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
Expand Down
Expand Up @@ -8,7 +8,6 @@

// <functional>

// UNSUPPORTED: clang-4.0
// UNSUPPORTED: c++03

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
Expand Down
4 changes: 0 additions & 4 deletions libcxx/test/libcxx/diagnostics/nodiscard_extensions.pass.cpp
Expand Up @@ -13,10 +13,6 @@
// This test intentionally leaks memory, so it is unsupported under ASAN.
// UNSUPPORTED: asan

// AppleClang9 and GCC 5 don't support C++17's implicitly synthesized
// deduction guides from existing ctors, needed by default_searcher() below.
// UNSUPPORTED: apple-clang-9

// All entities to which libc++ applies [[nodiscard]] as an extension should
// be tested here and in nodiscard_extensions.fail.cpp. They should also
// be listed in `UsingLibcxx.rst` in the documentation for the extension.
Expand Down
Expand Up @@ -9,10 +9,6 @@

// UNSUPPORTED: c++03

// AppleClang9 doesn't yet support C++17's implicitly synthesized deduction
// guides from existing ctors, needed by default_searcher() below.
// UNSUPPORTED: apple-clang-9

// Test that entities declared [[nodiscard]] as an extension by libc++, are
// only actually declared such when _LIBCPP_ENABLE_NODISCARD is specified.

Expand Down
Expand Up @@ -7,15 +7,11 @@
//===----------------------------------------------------------------------===//

// Make sure we get compile-time availability errors when trying to use aligned
// allocation/deallocation on deployment targets that don't support it.
// allocation/deallocation on deployment targets that don't support it (before macosx10.14).

// UNSUPPORTED: c++03, c++11, c++14

// Aligned allocation was not provided before macosx10.14.
// Support for that is broken prior to Clang 8 and Apple Clang 11.
// UNSUPPORTED: apple-clang-9, apple-clang-10
// UNSUPPORTED: clang-5, clang-6, clang-7

// REQUIRES: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}

#include <new>
Expand Down
Expand Up @@ -22,10 +22,6 @@
// nor does the dynamic library shipped with z/OS.
// UNSUPPORTED: target={{.+}}-zos{{.*}}

// AppleClang < 10 incorrectly warns that aligned allocation is not supported
// even when it is supported.
// UNSUPPORTED: apple-clang-9

// XFAIL: sanitizer-new-delete, ubsan

// GCC doesn't support the aligned-allocation flags.
Expand Down
Expand Up @@ -8,10 +8,6 @@

// UNSUPPORTED: c++03, c++11, c++14

// AppleClang <= 10 enables aligned allocation regardless of the deployment
// target, so this test would fail.
// UNSUPPORTED: apple-clang-9, apple-clang-10

// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}

#include <new>
Expand Down
Expand Up @@ -12,8 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// XFAIL: gcc
// UNSUPPORTED: c++03

#include <memory>
Expand Down
Expand Up @@ -12,8 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// XFAIL: gcc

#include <memory>
#include <cassert>
Expand Down
Expand Up @@ -12,8 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// XFAIL: gcc
// UNSUPPORTED: c++03

#include <memory>
Expand Down
Expand Up @@ -12,9 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10

// XFAIL: gcc

#include <memory>
#include <cassert>
Expand Down
Expand Up @@ -12,8 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// XFAIL: gcc

#include <memory>
#include <cassert>
Expand Down
3 changes: 1 addition & 2 deletions libcxx/test/libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp
Expand Up @@ -12,8 +12,7 @@

// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI

// There were assertion failures in both parse and codegen, which are fixed in clang 11.
// UNSUPPORTED: gcc, clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10
// XFAIL: gcc

#include <memory>
#include <cassert>
Expand Down
Expand Up @@ -8,10 +8,6 @@

// UNSUPPORTED: libcpp-has-no-threads

// [[nodiscard]] on constructors isn't supported by all compilers
// UNSUPPORTED: clang-6, clang-7, clang-8, clang-9
// UNSUPPORTED: apple-clang-9, apple-clang-10, apple-clang-11

// [[nodiscard]] isn't supported in C++03 (not even as an extension)
// UNSUPPORTED: c++03

Expand Down
Expand Up @@ -8,9 +8,6 @@

// UNSUPPORTED: c++03

// Clang doesn't support filename wildcards in verify tests until 05eedf1f5b44.
// UNSUPPORTED: clang-10

#include <memory>

template <int> struct Tag {};
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter, OutputIterator<auto, InIter::reference> OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<BidirectionalIterator InIter, BidirectionalIterator OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter, OutputIterator<auto, InIter::reference> OutIter>
Expand Down
Expand Up @@ -6,9 +6,6 @@
//
//===----------------------------------------------------------------------===//

// Older compilers don't support std::is_constant_evaluated
// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8
// UNSUPPORTED: apple-clang-9, apple-clang-10
// UNSUPPORTED: c++03

// <algorithm>
Expand Down
Expand Up @@ -13,10 +13,6 @@
// OutIter
// move(InIter first, InIter last, OutIter result);

// Older compilers don't support std::is_constant_evaluated
// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8
// UNSUPPORTED: apple-clang-9, apple-clang-10, apple-clang-11

#include <algorithm>
#include <cassert>
#include <memory>
Expand Down
Expand Up @@ -6,10 +6,6 @@
//
//===----------------------------------------------------------------------===//

// Older compilers don't support std::is_constant_evaluated
// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8
// UNSUPPORTED: apple-clang-9, apple-clang-10

// <algorithm>

// template<BidirectionalIterator InIter, BidirectionalIterator OutIter>
Expand Down
Expand Up @@ -12,10 +12,6 @@
// Iter
// rotate(Iter first, Iter middle, Iter last);

// Older compilers don't support std::is_constant_evaluated
// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8
// UNSUPPORTED: apple-clang-9, apple-clang-10

#include <algorithm>
#include <cassert>
#include <memory>
Expand Down
Expand Up @@ -12,10 +12,6 @@
// constexpr OutIter // constexpr after C++17
// rotate_copy(InIter first, InIter middle, InIter last, OutIter result);

// Older compilers don't support std::is_constant_evaluated
// UNSUPPORTED: clang-4, clang-5, clang-6, clang-7, clang-8
// UNSUPPORTED: apple-clang-9, apple-clang-10

#include <algorithm>
#include <cassert>

Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter,
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter,
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter,
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter>
Expand Down
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8

// <algorithm>

// template<InputIterator InIter1, InputIterator InIter2, typename OutIter,
Expand Down
1 change: 0 additions & 1 deletion libcxx/test/std/algorithms/robust_against_adl.pass.cpp
Expand Up @@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: clang-8
// UNSUPPORTED: c++03

// <algorithm>
Expand Down
Expand Up @@ -6,10 +6,9 @@
//
//===----------------------------------------------------------------------===//

// <map>
// UNSUPPORTED: c++03, c++11, c++14
// XFAIL: clang-6, apple-clang-9.0, apple-clang-9.1, apple-clang-10.0.0
// clang-6 gives different error messages.

// <map>

// template<class InputIterator,
// class Compare = less<iter-value-type<InputIterator>>,
Expand Down
Expand Up @@ -6,10 +6,9 @@
//
//===----------------------------------------------------------------------===//

// <map>
// UNSUPPORTED: c++03, c++11, c++14
// XFAIL: clang-6, apple-clang-9.0, apple-clang-9.1, apple-clang-10.0.0
// clang-6 gives different error messages.

// <map>

// template<class InputIterator,
// class Compare = less<iter-value-type<InputIterator>>,
Expand Down
Expand Up @@ -6,10 +6,9 @@
//
//===----------------------------------------------------------------------===//

// <set>
// UNSUPPORTED: c++03, c++11, c++14
// XFAIL: clang-6, apple-clang-9.0, apple-clang-9.1, apple-clang-10.0.0
// clang-6 gives different error messages.

// <set>

// template<class InputIterator,
// class Compare = less<iter-value-type<InputIterator>>,
Expand Down
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

// <set>
// UNSUPPORTED: c++03, c++11, c++14
// UNSUPPORTED: apple-clang-9.1

// <set>

// template<class InputIterator,
// class Compare = less<iter-value-type<InputIterator>>,
Expand Down

0 comments on commit 5425106

Please sign in to comment.