XFAIL aligned allocation tests for older Clang versions

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-10-14 08:47:09 +00:00
parent 34c6b805cf
commit f172df1f43
9 changed files with 32 additions and 18 deletions

View File

@@ -315,6 +315,10 @@ class Configuration(object):
if self.cxx.hasCompileFlag('-faligned-allocation'): if self.cxx.hasCompileFlag('-faligned-allocation'):
self.config.available_features.add('-faligned-allocation') self.config.available_features.add('-faligned-allocation')
else:
# FIXME remove this once more than just clang-4.0 support
# C++17 aligned allocation.
self.config.available_features.add('no-aligned-allocation')
if self.get_lit_bool('has_libatomic', False): if self.get_lit_bool('has_libatomic', False):
self.config.available_features.add('libatomic') self.config.available_features.add('libatomic')

View File

@@ -9,11 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// test operator new
// asan and msan will not call the new handler. // asan and msan will not call the new handler.
// UNSUPPORTED: sanitizer-new-delete // UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cassert> #include <cassert>

View File

@@ -9,11 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// test operator new (nothrow)
// asan and msan will not call the new handler. // asan and msan will not call the new handler.
// UNSUPPORTED: sanitizer-new-delete // UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new (nothrow)
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>

View File

@@ -8,18 +8,18 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new nothrow by replacing only operator new // test operator new nothrow by replacing only operator new
// UNSUPPORTED: sanitizer-new-delete
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>
#include <cassert> #include <cassert>
#include <limits> #include <limits>
constexpr auto OverAligned = alignof(std::max_align_t) * 2; constexpr auto OverAligned = alignof(std::max_align_t) * 2;
int A_constructed = 0; int A_constructed = 0;

View File

@@ -8,11 +8,12 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new replacement // test operator new replacement
// UNSUPPORTED: sanitizer-new-delete
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>

View File

@@ -9,11 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// test operator new
// asan and msan will not call the new handler. // asan and msan will not call the new handler.
// UNSUPPORTED: sanitizer-new-delete // UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cassert> #include <cassert>

View File

@@ -9,11 +9,13 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// test operator new (nothrow)
// asan and msan will not call the new handler. // asan and msan will not call the new handler.
// UNSUPPORTED: sanitizer-new-delete // UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new (nothrow)
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>

View File

@@ -8,11 +8,11 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// test operator new nothrow by replacing only operator new
// UNSUPPORTED: sanitizer-new-delete // UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new nothrow by replacing only operator new
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@@ -8,11 +8,12 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14 // UNSUPPORTED: c++98, c++03, c++11, c++14
// UNSUPPORTED: sanitizer-new-delete
// XFAIL: no-aligned-allocation
// test operator new replacement // test operator new replacement
// UNSUPPORTED: sanitizer-new-delete
#include <new> #include <new>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>