mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 20:29:39 +08:00
[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:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user