mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 08:46:06 +00:00

The superclass method handles a bunch of useful things. For example it applies flags such as `-fnew-alignment` which doesn't work without this patch. Differential Revision: https://reviews.llvm.org/D118573
11 lines
461 B
C++
11 lines
461 B
C++
// 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
|
|
// RUN: %clang_cc1 -std=c++1z %s -verify -triple wasm32-unknown-unknown -fnew-alignment=256 -DALIGN=256
|
|
|
|
// expected-no-diagnostics
|
|
|
|
#if ALIGN != __STDCPP_DEFAULT_NEW_ALIGNMENT__
|
|
#error wrong value for __STDCPP_DEFAULT_NEW_ALIGNMENT__
|
|
#endif
|