[libc++] Purge mentions of GCC 4 from the test suite

We don't support GCC 4 and older according to the documentation, so
we should pretend it doesn't exist.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@372787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Louis Dionne
2019-09-24 22:42:36 +00:00
parent afa5393dd5
commit 1ee6c64cc8
32 changed files with 13 additions and 66 deletions

View File

@@ -14,7 +14,7 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// GCC 7 is the first version to introduce [[nodiscard]] // GCC 7 is the first version to introduce [[nodiscard]]
// UNSUPPORTED: gcc-4.9, gcc-5, gcc-6 // UNSUPPORTED: gcc-5, gcc-6
// MODULES_DEFINES: _LIBCPP_ENABLE_NODISCARD // MODULES_DEFINES: _LIBCPP_ENABLE_NODISCARD
#define _LIBCPP_ENABLE_NODISCARD #define _LIBCPP_ENABLE_NODISCARD

View File

@@ -10,7 +10,7 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// GCC 7 is the first version to introduce [[nodiscard]] // GCC 7 is the first version to introduce [[nodiscard]]
// UNSUPPORTED: gcc-4.9, gcc-5, gcc-6 // UNSUPPORTED: gcc-5, gcc-6
// Test that _LIBCPP_DISABLE_NODISCARD_EXT only disables _LIBCPP_NODISCARD_EXT // Test that _LIBCPP_DISABLE_NODISCARD_EXT only disables _LIBCPP_NODISCARD_EXT
// and not _LIBCPP_NODISCARD_AFTER_CXX17. // and not _LIBCPP_NODISCARD_AFTER_CXX17.

View File

@@ -10,7 +10,7 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// GCC 7 is the first version to introduce [[nodiscard]] // GCC 7 is the first version to introduce [[nodiscard]]
// UNSUPPORTED: gcc-4.9, gcc-5, gcc-6 // UNSUPPORTED: gcc-5, gcc-6
// MODULES_DEFINES: _LIBCPP_ENABLE_NODISCARD // MODULES_DEFINES: _LIBCPP_ENABLE_NODISCARD

View File

@@ -10,7 +10,7 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// GCC versions prior to 7.0 don't provide the required [[nodiscard]] attribute. // GCC versions prior to 7.0 don't provide the required [[nodiscard]] attribute.
// UNSUPPORTED: gcc-4, gcc-5, gcc-6 // UNSUPPORTED: gcc-5, gcc-6
// AppleClang9 doesn't yet support C++17's implicitly synthesized deduction // AppleClang9 doesn't yet support C++17's implicitly synthesized deduction
// guides from existing ctors, needed by default_searcher() below. // guides from existing ctors, needed by default_searcher() below.

View File

@@ -9,7 +9,7 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// Before GCC 6, this trait fails. See https://stackoverflow.com/q/41799015/627587. // Before GCC 6, this trait fails. See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <type_traits> // <type_traits>

View File

@@ -6,9 +6,6 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// The test fails due to the missing is_trivially_constructible intrinsic.
// XFAIL: gcc-4.9
// The test suite needs to define the ABI macros on the command line when // The test suite needs to define the ABI macros on the command line when
// modules are enabled. // modules are enabled.
// UNSUPPORTED: -fmodules // UNSUPPORTED: -fmodules

View File

@@ -6,9 +6,6 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// The test fails due to the missing is_trivially_constructible intrinsic.
// XFAIL: gcc-4.9
// <utility> // <utility>
// template <class T1, class T2> struct pair // template <class T1, class T2> struct pair

View File

@@ -8,9 +8,6 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// See GCC PR63723.
// UNSUPPORTED: gcc-4.9
// <experimental/simd> // <experimental/simd>
// //
// [simd.class] // [simd.class]

View File

@@ -8,9 +8,6 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// See GCC PR63723.
// UNSUPPORTED: gcc-4.9
// <experimental/simd> // <experimental/simd>
// //
// [simd.class] // [simd.class]

View File

@@ -8,9 +8,6 @@
// <iterator> // <iterator>
// Test fails due to use of is_trivially_* trait.
// XFAIL: gcc-4.9
// template <class T, class charT = char, class traits = char_traits<charT>, // template <class T, class charT = char, class traits = char_traits<charT>,
// class Distance = ptrdiff_t> // class Distance = ptrdiff_t>
// class istream_iterator // class istream_iterator

View File

@@ -8,9 +8,6 @@
// <iterator> // <iterator>
// Test fails due to use of is_trivially_* trait.
// XFAIL: gcc-4.9
// template<class charT, class traits = char_traits<charT> > // template<class charT, class traits = char_traits<charT> >
// class istreambuf_iterator // class istreambuf_iterator
// : public iterator<input_iterator_tag, charT, // : public iterator<input_iterator_tag, charT,

View File

@@ -15,10 +15,6 @@
// (except clang-3.6 which temporarily enabled sized-deallocation) // (except clang-3.6 which temporarily enabled sized-deallocation)
// UNSUPPORTED: clang, apple-clang // 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 <new>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>

View File

@@ -15,10 +15,6 @@
// (except clang-3.6 which temporarily enabled sized-deallocation) // (except clang-3.6 which temporarily enabled sized-deallocation)
// UNSUPPORTED: clang, apple-clang // 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 <new>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>

View File

@@ -11,7 +11,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// struct nothrow_t { // struct nothrow_t {
// explicit nothrow_t() = default; // explicit nothrow_t() = default;

View File

@@ -12,7 +12,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <mutex> // <mutex>

View File

@@ -13,9 +13,6 @@
// Test that reference wrapper meets the requirements of CopyConstructible and // Test that reference wrapper meets the requirements of CopyConstructible and
// CopyAssignable, and TriviallyCopyable (starting in C++14). // CopyAssignable, and TriviallyCopyable (starting in C++14).
// Test fails due to use of is_trivially_* trait.
// XFAIL: gcc-4.9 && c++14
#include <functional> #include <functional>
#include <type_traits> #include <type_traits>
#include <string> #include <string>

View File

@@ -10,7 +10,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <memory> // <memory>

View File

@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: gcc-4, gcc-5, gcc-6 // XFAIL: gcc-5, gcc-6
// <memory> // <memory>

View File

@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// UNSUPPORTED: clang-3, clang-4, clang-5, apple-clang, gcc-4, gcc-5, gcc-6 // UNSUPPORTED: clang-3, clang-4, clang-5, apple-clang, gcc-5, gcc-6
// type_traits // type_traits

View File

@@ -10,8 +10,6 @@
// is_trivially_assignable // is_trivially_assignable
// XFAIL: gcc-4.9
#include <type_traits> #include <type_traits>
#include "test_macros.h" #include "test_macros.h"

View File

@@ -10,8 +10,6 @@
// is_trivially_copy_assignable // is_trivially_copy_assignable
// XFAIL: gcc-4.9
#include <type_traits> #include <type_traits>
#include "test_macros.h" #include "test_macros.h"

View File

@@ -10,8 +10,6 @@
// is_trivially_copy_constructible // is_trivially_copy_constructible
// XFAIL: gcc-4.9
#include <type_traits> #include <type_traits>
#include "test_macros.h" #include "test_macros.h"

View File

@@ -10,8 +10,6 @@
// is_trivially_move_assignable // is_trivially_move_assignable
// XFAIL: gcc-4.9
#include <type_traits> #include <type_traits>
#include "test_macros.h" #include "test_macros.h"

View File

@@ -10,8 +10,6 @@
// is_trivially_move_constructible // is_trivially_move_constructible
// XFAIL: gcc-4.9
#include <type_traits> #include <type_traits>
#include "test_macros.h" #include "test_macros.h"

View File

@@ -10,7 +10,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <tuple> // <tuple>

View File

@@ -14,7 +14,6 @@
// struct tuple_size<tuple<Types...>> // struct tuple_size<tuple<Types...>>
// : public integral_constant<size_t, sizeof...(Types)> { }; // : public integral_constant<size_t, sizeof...(Types)> { };
// XFAIL: gcc-4.9
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
#include <tuple> #include <tuple>

View File

@@ -14,7 +14,6 @@
// class tuple_size<tuple<Types...>> // class tuple_size<tuple<Types...>>
// : public integral_constant<size_t, sizeof...(Types)> { }; // : public integral_constant<size_t, sizeof...(Types)> { };
// XFAIL: gcc-4.9
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
#include <tuple> #include <tuple>

View File

@@ -10,7 +10,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <utility> // <utility>

View File

@@ -10,7 +10,7 @@
// Before GCC 6, aggregate initialization kicks in. // Before GCC 6, aggregate initialization kicks in.
// See https://stackoverflow.com/q/41799015/627587. // See https://stackoverflow.com/q/41799015/627587.
// UNSUPPORTED: gcc-4, gcc-5 // UNSUPPORTED: gcc-5
// <utility> // <utility>

View File

@@ -12,11 +12,6 @@
// explicit(see-below) constexpr pair(); // explicit(see-below) constexpr pair();
// This test doesn't pass due to a constexpr bug in GCC 4.9 that fails
// to initialize any type without a user provided constructor in a constant
// expression (e.g. float).
// XFAIL: gcc-4.9
// NOTE: The SFINAE on the default constructor is tested in // NOTE: The SFINAE on the default constructor is tested in
// default-sfinae.pass.cpp // default-sfinae.pass.cpp

View File

@@ -13,9 +13,6 @@
// pair(pair const&) = default; // pair(pair const&) = default;
// pair(pair&&) = default; // pair(pair&&) = default;
// Doesn't pass due to use of is_trivially_* trait.
// XFAIL: gcc-4.9
#include <utility> #include <utility>
#include <cassert> #include <cassert>

View File

@@ -8,10 +8,6 @@
// UNSUPPORTED: c++98, c++03 // UNSUPPORTED: c++98, c++03
// This workaround option is specific to MSVC's C1XX, so we don't care that
// it isn't set for older GCC versions.
// XFAIL: gcc-4.9
// Verify TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE. // Verify TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE.
#include <type_traits> #include <type_traits>