Skip to content

Commit 6900df3

Browse files
committed
[libc++] Remove Lit annotations for unsupported GCC versions from the test suite
Since we officially don't support several older compilers now, we can drop a lot of the markup in the test suite. This helps keep the test suite simple and makes sure that UNSUPPORTED annotations don't rot. This is the first patch of a series that will remove annotations for compilers that are now unsupported. Differential Revision: https://reviews.llvm.org/D107787
1 parent f5d32c5 commit 6900df3

File tree

395 files changed

+8
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

395 files changed

+8
-522
lines changed

libcxx/test/libcxx/diagnostics/enable_nodiscard.verify.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
// UNSUPPORTED: c++03
1515

16-
// GCC 7 is the first version to introduce [[nodiscard]]
17-
// UNSUPPORTED: gcc-5, gcc-6
18-
1916
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_NODISCARD
2017

2118
#include <__config>

libcxx/test/libcxx/diagnostics/enable_nodiscard_disable_after_cxx17.verify.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
// UNSUPPORTED: c++03
1111

12-
// GCC 7 is the first version to introduce [[nodiscard]]
13-
// UNSUPPORTED: gcc-5, gcc-6
14-
1512
// Test that _LIBCPP_DISABLE_NODISCARD_EXT only disables _LIBCPP_NODISCARD_EXT
1613
// and not _LIBCPP_NODISCARD_AFTER_CXX17.
1714

libcxx/test/libcxx/diagnostics/enable_nodiscard_disable_nodiscard_ext.verify.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
// UNSUPPORTED: c++03
1111

12-
// GCC 7 is the first version to introduce [[nodiscard]]
13-
// UNSUPPORTED: gcc-5, gcc-6
14-
15-
1612
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_NODISCARD
1713
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_NODISCARD_EXT
1814
#include <__config>

libcxx/test/libcxx/diagnostics/nodiscard_extensions.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
// AppleClang9 and GCC 5 don't support C++17's implicitly synthesized
1717
// deduction guides from existing ctors, needed by default_searcher() below.
1818
// UNSUPPORTED: apple-clang-9
19-
// UNSUPPORTED: gcc-5
2019

2120
// All entities to which libc++ applies [[nodiscard]] as an extension should
2221
// be tested here and in nodiscard_extensions.fail.cpp. They should also

libcxx/test/libcxx/double_include.sh.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
// RUN: %{cxx} -o %t.exe %t.first.o %t.second.o %{flags} %{link_flags}
1515
// RUN: %{run}
1616

17-
// GCC 5 pretends it supports C++17 features, but some features like static_assert
18-
// without a message are not actually supported. This causes some headers to fail
19-
// when included.
20-
// UNSUPPORTED: gcc-5 && c++17
21-
2217
// Prevent <ext/hash_map> from generating deprecated warnings for this test.
2318
#if defined(__DEPRECATED)
2419
# undef __DEPRECATED

libcxx/test/libcxx/input.output/filesystems/convert_file_time.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11
10-
// UNSUPPORTED: gcc-5
1110

1211
// <filesystem>
1312

libcxx/test/libcxx/iterators/iterator.concepts/iterator.concept.random.access/subsumption.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
1010
// UNSUPPORTED: libcpp-no-concepts
11-
// UNSUPPORTED: gcc-10
1211

1312
// template<class T>
1413
// concept random_access_iterator;

libcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/legacy_bidirectional_iterator.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
1010
// UNSUPPORTED: libcpp-no-concepts
11-
// UNSUPPORTED: gcc-10
1211

1312
// template<class I>
1413
// concept __iterator_traits_detail::__cpp17_bidirectional_iterator;

libcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/legacy_forward_iterator.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
1010
// UNSUPPORTED: libcpp-no-concepts
11-
// UNSUPPORTED: gcc-10
1211

1312
// template<class I>
1413
// concept __iterator_traits_detail::__cpp17_forward_iterator;

libcxx/test/libcxx/iterators/iterator.requirements/iterator.assoc.types/iterator.traits/legacy_input_iterator.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
1010
// UNSUPPORTED: libcpp-no-concepts
11-
// UNSUPPORTED: gcc-10
1211

1312
// template<class I>
1413
// concept __iterator_traits_detail::__cpp17_input_iterator;

0 commit comments

Comments
 (0)