[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CXX / cpp / cpp.predefined / p1.cpp
blob42a80d37c43d105b7ed0b3fad581715be468a270
1 // RUN: %clang_cc1 -std=c++1z %s -verify -triple x86_64-linux-gnu -DALIGN=16
2 // RUN: %clang_cc1 -std=c++1z %s -verify -fnew-alignment=2 -DALIGN=2
3 // RUN: %clang_cc1 -std=c++1z %s -verify -fnew-alignment=256 -DALIGN=256
4 // RUN: %clang_cc1 -std=c++1z %s -verify -triple wasm32-unknown-unknown -fnew-alignment=256 -DALIGN=256
6 // expected-no-diagnostics
8 #if ALIGN != __STDCPP_DEFAULT_NEW_ALIGNMENT__
9 #error wrong value for __STDCPP_DEFAULT_NEW_ALIGNMENT__
10 #endif