summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/cpp/cpp.predefined/p1.cpp
blob: c0dcbd54f38737ddb490b00661631d52a69e2b2d (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -std=c++1z %s -verify -triple x86_64-linux-gnu -DALIGN=16
// RUN: %clang_cc1 -std=c++1z %s -verify -fnew-alignment=2 -DALIGN=2
// RUN: %clang_cc1 -std=c++1z %s -verify -fnew-alignment=256 -DALIGN=256

// expected-no-diagnostics

#if ALIGN != __STDCPP_DEFAULT_NEW_ALIGNMENT__
#error wrong value for __STDCPP_DEFAULT_NEW_ALIGNMENT__
#endif
OpenPOWER on IntegriCloud