forked from OSchip/llvm-project
XFAIL aligned allocation tests for older Clang versions
llvm-svn: 284214
This commit is contained in:
parent
387530ffe3
commit
81b13934c1
|
@ -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')
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue