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