XFAIL aligned allocation tests for older Clang versions

llvm-svn: 284214
This commit is contained in:
Eric Fiselier 2016-10-14 08:47:09 +00:00
parent 387530ffe3
commit 81b13934c1
9 changed files with 32 additions and 18 deletions

View File

@ -315,6 +315,10 @@ class Configuration(object):
if self.cxx.hasCompileFlag('-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):
self.config.available_features.add('libatomic')

View File

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

View File

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

View File

@ -8,18 +8,18 @@
//===----------------------------------------------------------------------===//
// 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
// UNSUPPORTED: sanitizer-new-delete
#include <new>
#include <cstddef>
#include <cstdlib>
#include <cassert>
#include <limits>
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
int A_constructed = 0;

View File

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

View File

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

View File

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

View File

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

View File

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