diff options
Diffstat (limited to 'test/CXX/cpp/cpp.predefined/p1.cpp')
| -rw-r--r-- | test/CXX/cpp/cpp.predefined/p1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CXX/cpp/cpp.predefined/p1.cpp b/test/CXX/cpp/cpp.predefined/p1.cpp new file mode 100644 index 0000000000000..c0dcbd54f3873 --- /dev/null +++ b/test/CXX/cpp/cpp.predefined/p1.cpp @@ -0,0 +1,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 |
