[test] Alignment must be > __STDCPP_DEFAULT_NEW_ALIGNMENT__ to call aligned new

Differential Revision: D39221

llvm-svn: 318325
This commit is contained in:
Casey Carter 2017-11-15 19:14:45 +00:00
parent d49c92b124
commit dc2596e971
10 changed files with 10 additions and 10 deletions

View File

@ -36,7 +36,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int unsized_delete_called = 0;
int unsized_delete_nothrow_called = 0;

View File

@ -38,7 +38,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int new_handler_called = 0;

View File

@ -37,7 +37,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int new_handler_called = 0;

View File

@ -34,7 +34,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int A_constructed = 0;

View File

@ -24,7 +24,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int A_constructed = 0;

View File

@ -35,7 +35,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int unsized_delete_called = 0;
int unsized_delete_nothrow_called = 0;

View File

@ -37,7 +37,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int new_handler_called = 0;

View File

@ -37,7 +37,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
int new_handler_called = 0;

View File

@ -35,7 +35,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
bool A_constructed = false;

View File

@ -24,7 +24,7 @@
#include "test_macros.h"
constexpr auto OverAligned = alignof(std::max_align_t) * 2;
constexpr auto OverAligned = __STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2;
bool A_constructed = false;