forked from OSchip/llvm-project
[libc++] [libc++abi] Mark a few tests as unsupported/xfail on gcc-7/8/9.
This should make the builder http://lab.llvm.org:8011/#/builders/101/ happy. It uses gcc-9 and not Tip-Of-Trunk as its name indicates BTW. GCC-10 passes all these tests. Fix gcc warnings: -Wsign-compare, -Wparentheses, -Wpragmas. Reviewed By: ldionne, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D92099
This commit is contained in:
parent
728634d0cf
commit
dde0fcd7a7
libcxx/test
std
experimental/simd/simd.access
strings/basic.string/string.cons
support
libcxxabi/test
|
@ -40,12 +40,12 @@ void test_access() {
|
|||
assert(a[0] % b[0] == 42 % 4);
|
||||
assert(a[0] << b[0] == (42 << 4));
|
||||
assert(a[0] >> b[0] == (42 >> 4));
|
||||
assert(a[0] < b[0] == false);
|
||||
assert(a[0] <= b[0] == false);
|
||||
assert(a[0] > b[0] == true);
|
||||
assert(a[0] >= b[0] == true);
|
||||
assert(a[0] == b[0] == false);
|
||||
assert(a[0] != b[0] == true);
|
||||
assert((a[0] < b[0]) == false);
|
||||
assert((a[0] <= b[0]) == false);
|
||||
assert((a[0] > b[0]) == true);
|
||||
assert((a[0] >= b[0]) == true);
|
||||
assert((a[0] == b[0]) == false);
|
||||
assert((a[0] != b[0]) == true);
|
||||
assert((a[0] & b[0]) == (42 & 4));
|
||||
assert((a[0] | b[0]) == (42 | 4));
|
||||
assert((a[0] ^ b[0]) == (42 ^ 4));
|
||||
|
@ -198,12 +198,12 @@ void test_access() {
|
|||
assert(a[0] % b[0] == 42 % 4);
|
||||
assert(a[0] << b[0] == (42 << 4));
|
||||
assert(a[0] >> b[0] == (42 >> 4));
|
||||
assert(a[0] < b[0] == false);
|
||||
assert(a[0] <= b[0] == false);
|
||||
assert(a[0] > b[0] == true);
|
||||
assert(a[0] >= b[0] == true);
|
||||
assert(a[0] == b[0] == false);
|
||||
assert(a[0] != b[0] == true);
|
||||
assert((a[0] < b[0]) == false);
|
||||
assert((a[0] <= b[0]) == false);
|
||||
assert((a[0] > b[0]) == true);
|
||||
assert((a[0] >= b[0]) == true);
|
||||
assert((a[0] == b[0]) == false);
|
||||
assert((a[0] != b[0]) == true);
|
||||
assert((a[0] & b[0]) == (42 & 4));
|
||||
assert((a[0] | b[0]) == (42 | 4));
|
||||
assert((a[0] ^ b[0]) == (42 ^ 4));
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// <string>
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: gcc-7
|
||||
// XFAIL: libcpp-no-deduction-guides
|
||||
|
||||
// template<class InputIterator>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// <string>
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: gcc-7
|
||||
// XFAIL: libcpp-no-deduction-guides
|
||||
|
||||
// template<class InputIterator>
|
||||
|
|
|
@ -184,7 +184,9 @@ struct scoped_test_env
|
|||
|
||||
filename = sanitize_path(std::move(filename));
|
||||
|
||||
if (size > std::numeric_limits<large_file_offset_t>::max()) {
|
||||
if (size >
|
||||
static_cast<typename std::make_signed<large_file_offset_t>::type>(
|
||||
std::numeric_limits<large_file_offset_t>::max())) {
|
||||
fprintf(stderr, "create_file(%s, %ju) too large\n",
|
||||
filename.c_str(), size);
|
||||
abort();
|
||||
|
|
|
@ -6,13 +6,15 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: gcc-7, gcc-8, gcc-9
|
||||
|
||||
#include <cassert>
|
||||
|
||||
// This test explicitly tests dynamic cast with types that have inaccessible
|
||||
// bases.
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Winaccessible-base"
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) && (__GNUC__ >= 10)
|
||||
# pragma GCC diagnostic ignored "-Winaccessible-base"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: gcc-7, gcc-8, gcc-9
|
||||
|
||||
#include <cassert>
|
||||
#include "support/timer.h"
|
||||
|
||||
|
@ -13,7 +15,7 @@
|
|||
// bases.
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Winaccessible-base"
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) && (__GNUC__ >= 10)
|
||||
# pragma GCC diagnostic ignored "-Winaccessible-base"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: gcc-7, gcc-8, gcc-9
|
||||
|
||||
#include <cassert>
|
||||
#include "support/timer.h"
|
||||
|
||||
|
@ -13,7 +15,7 @@
|
|||
// bases.
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Winaccessible-base"
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) && (__GNUC__ >= 10)
|
||||
# pragma GCC diagnostic ignored "-Winaccessible-base"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
// Suppress diagnostics about deprecated volatile operations
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 10) && !defined(__clang__)
|
||||
# pragma GCC diagnostic ignored "-Wvolatile"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue