1 // { dg-do run { target c++17 } } 2 3 #ifndef __STDCPP_DEFAULT_NEW_ALIGNMENT__ 4 #error __STDCPP_DEFAULT_NEW_ALIGNMENT__ not defined 5 #endif 6 7 #include <cstdint> 8 9 struct alignas(64) A { int i; }; 10 main()11int main() 12 { 13 A *p = new A; 14 if (std::intptr_t(p) % 64 != 0) 15 __builtin_abort(); 16 } 17