Skip to content

Commit 31cbe0f

Browse files
committed
[libc++] Remove the c++98 Lit feature from the test suite
C++98 and C++03 are effectively aliases as far as Clang is concerned. As such, allowing both std=c++98 and std=c++03 as Lit parameters is just slightly confusing, but provides no value. It's similar to allowing both std=c++17 and std=c++1z, which we don't do. This was discovered because we had an internal bot that ran the test suite under both c++98 AND c++03 -- one of which is redundant. Differential Revision: https://reviews.llvm.org/D80926
1 parent 6163fa7 commit 31cbe0f

File tree

2,071 files changed

+2074
-2075
lines changed

Some content is hidden

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

2,071 files changed

+2074
-2075
lines changed

libcxx/docs/TestingLibcxx.rst

Lines changed: 1 addition & 1 deletion

libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.depr_in_cxx14.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// RandomNumberGenerator& rand);
1919

2020
// UNSUPPORTED: clang-4.0
21-
// UNSUPPORTED: c++98, c++03, c++11
21+
// UNSUPPORTED: c++03, c++11
2222

2323
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE
2424

libcxx/test/libcxx/atomics/atomics.align/align.pass.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// UNSUPPORTED: libcpp-has-no-threads, c++98, c++03
9+
// UNSUPPORTED: libcpp-has-no-threads, c++03
1010
// REQUIRES: libatomic
1111
// FILE_DEPENDENCIES: %t.exe
1212
// RUN: %{build} -latomic

libcxx/test/libcxx/containers/associative/non_const_comparator.incomplete.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// Test that libc++ does not generate a warning diagnostic about the comparator
1212
// too early for containers of incomplete types.

libcxx/test/libcxx/containers/associative/non_const_comparator.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010
// REQUIRES: diagnose-if-support
1111

1212
// Test that libc++ generates a warning diagnostic when the container is

libcxx/test/libcxx/containers/sequences/array/array.zero/db_back.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// UNSUPPORTED: c++98, c++03
8+
// UNSUPPORTED: c++03
99
// UNSUPPORTED: windows
1010

1111
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/containers/sequences/array/array.zero/db_front.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// UNSUPPORTED: c++98, c++03
8+
// UNSUPPORTED: c++03
99
// UNSUPPORTED: windows
1010

1111
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/containers/sequences/array/array.zero/db_indexing.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// UNSUPPORTED: c++98, c++03
8+
// UNSUPPORTED: c++03
99
// UNSUPPORTED: windows
1010

1111
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/containers/sequences/deque/spare_block_handling.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// <deque>
1212

libcxx/test/libcxx/containers/sequences/list/list.cons/db_move.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// Can't test the system lib because this test enables debug mode
1212
// UNSUPPORTED: with_system_cxx_lib=macosx

libcxx/test/libcxx/containers/sequences/list/list.modifiers/emplace_db1.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// Can't test the system lib because this test enables debug mode
1212
// UNSUPPORTED: with_system_cxx_lib=macosx

libcxx/test/libcxx/containers/sequences/vector.bool/trivial_for_purposes_of_call.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// destructor, or
2525
// * all of its copy and move constructors are deleted.
2626

27-
// UNSUPPORTED: c++98, c++03
27+
// UNSUPPORTED: c++03
2828

2929
#include <vector>
3030
#include <cassert>

libcxx/test/libcxx/containers/sequences/vector/const_value_type.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// <vector>
1212

libcxx/test/libcxx/containers/sequences/vector/exception_safety_exceptions_disabled.pass.cpp

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

99
// ADDITIONAL_COMPILE_FLAGS: -fno-exceptions
1010

11-
// UNSUPPORTED: c++98, c++03
11+
// UNSUPPORTED: c++03
1212

1313
// <vector>
1414

libcxx/test/libcxx/containers/unord/next_pow2.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// REQUIRES: long_tests
10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111

1212
// Not a portable test
1313

libcxx/test/libcxx/containers/unord/non_const_comparator.incomplete.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// Test that libc++ does not generate a warning diagnostic about the comparator
1212
// or the hasher too early for containers of incomplete types.

libcxx/test/libcxx/containers/unord/non_const_comparator.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010
// REQUIRES: diagnose-if-support
1111

1212
// Test that libc++ generates a warning diagnostic when the container is

libcxx/test/libcxx/containers/unord/unord.map/at.abort.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// is not in the map.
1717

1818
// REQUIRES: no-exceptions
19-
// UNSUPPORTED: c++98, c++03
19+
// UNSUPPORTED: c++03
2020

2121
#include <csignal>
2222
#include <cstdlib>

libcxx/test/libcxx/containers/unord/unord.map/at.const.abort.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// is not in the map.
1717

1818
// REQUIRES: no-exceptions
19-
// UNSUPPORTED: c++98, c++03
19+
// UNSUPPORTED: c++03
2020

2121
#include <csignal>
2222
#include <cstdlib>

libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.fail.cpp

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

99
// REQUIRES: diagnose-if-support
10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111

1212
// Libc++ only provides a defined primary template for std::hash in C++14 and
1313
// newer.

libcxx/test/libcxx/debug/containers/db_associative_container_tests.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-no-if-constexpr
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/containers/db_sequence_container_iterators.multithread.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-has-no-threads
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/containers/db_sequence_container_iterators.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-no-if-constexpr
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/containers/db_string.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-no-if-constexpr
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/containers/db_unord_container_tests.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-no-if-constexpr
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/db_string_view.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: windows
1111
// UNSUPPORTED: libcpp-no-if-constexpr
1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1

libcxx/test/libcxx/debug/debug_helper_test.pass.cpp

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

10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111
// UNSUPPORTED: windows
1212

1313
// Can't test the system lib because this test enables debug mode

libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.depr_in_cxx11.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// Deprecated in C++11
2020

2121
// UNSUPPORTED: clang-4.0
22-
// UNSUPPORTED: c++98, c++03
22+
// UNSUPPORTED: c++03
2323

2424
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
2525

libcxx/test/libcxx/depr/depr.c.headers/no_fgetpos_fsetpos.verify.cpp

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

9-
// UNSUPPORTED: c++98 || c++03
9+
// UNSUPPORTED: c++03
1010

1111
#include <cstdio>
1212

libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/address.depr_in_cxx17.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Deprecated in C++17
1616

17-
// UNSUPPORTED: c++98, c++03, c++11, c++14
17+
// UNSUPPORTED: c++03, c++11, c++14
1818

1919
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS
2020

libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/allocate.cxx2a.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
9+
// UNSUPPORTED: c++03, c++11, c++14, c++17
1010

1111
// <memory>
1212

libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/allocate.depr_in_cxx17.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// Deprecated in C++17
1515

16-
// UNSUPPORTED: c++98, c++03, c++11, c++14
16+
// UNSUPPORTED: c++03, c++11, c++14
1717

1818
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS
1919

libcxx/test/libcxx/depr/depr.default.allocator/allocator_types.depr_in_cxx17.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
// Deprecated in C++17
2929

30-
// UNSUPPORTED: c++98, c++03, c++11, c++14
30+
// UNSUPPORTED: c++03, c++11, c++14
3131

3232
// Clang 6 does not handle the deprecated attribute on template members properly,
3333
// so the rebind<int> check below fails.

libcxx/test/libcxx/depr/depr.default.allocator/allocator_void.depr_in_cxx17.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//
2222
// Deprecated in C++17
2323

24-
// UNSUPPORTED: c++98, c++03, c++11, c++14
24+
// UNSUPPORTED: c++03, c++11, c++14
2525

2626
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS
2727

libcxx/test/libcxx/depr/depr.function.objects/adaptors.depr_in_cxx11.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// <functional>
1010

1111
// UNSUPPORTED: clang-4.0
12-
// UNSUPPORTED: c++98, c++03
12+
// UNSUPPORTED: c++03
1313

1414
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
1515

libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp

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

9-
// UNSUPPORTED: c++98, c++03, c++11, c++14
9+
// UNSUPPORTED: c++03, c++11, c++14
1010

1111
// test unexpected
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// to the appropriate warning-generating attribute when _LIBCPP_ENABLE_NODISCARD
1212
// is explicitly provided.
1313

14-
// UNSUPPORTED: c++98, c++03
14+
// UNSUPPORTED: c++03
1515

1616
// GCC 7 is the first version to introduce [[nodiscard]]
1717
// UNSUPPORTED: gcc-5, gcc-6

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

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

10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111

1212
// GCC 7 is the first version to introduce [[nodiscard]]
1313
// UNSUPPORTED: gcc-5, gcc-6

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

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

10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111

1212
// GCC 7 is the first version to introduce [[nodiscard]]
1313
// UNSUPPORTED: gcc-5, gcc-6

libcxx/test/libcxx/diagnostics/nodiscard_aftercxx17.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Test that _LIBCPP_NODISCARD_AFTER_CXX17 works
1111
// #define _LIBCPP_NODISCARD_AFTER_CXX17 [[nodiscard]]
1212

13-
// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
13+
// UNSUPPORTED: c++03, c++11, c++14, c++17
1414

1515
#include <__config>
1616

libcxx/test/libcxx/diagnostics/nodiscard_extensions.verify.cpp

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

10-
// UNSUPPORTED: c++98, c++03
10+
// UNSUPPORTED: c++03
1111

1212
// AppleClang9 doesn't yet support C++17's implicitly synthesized deduction
1313
// guides from existing ctors, needed by default_searcher() below.

libcxx/test/libcxx/experimental/filesystem/deprecated.verify.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// <experimental/filesystem>
1212

libcxx/test/libcxx/experimental/language.support/support.coroutines/version.pass.cpp

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

10-
// UNSUPPORTED: c++98, c++03, c++11
10+
// UNSUPPORTED: c++03, c++11
1111
// REQUIRES: fcoroutines-ts
1212
// ADDITIONAL_COMPILE_FLAGS: -fcoroutines-ts
1313

libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp

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

9-
// UNSUPPORTED: c++98, c++03
9+
// UNSUPPORTED: c++03
1010

1111
// <experimental/memory_resource>
1212

0 commit comments

Comments
 (0)