aligned_new_probe.cpp 175 B

123456
  1. #include <new>
  2. int main() {
  3. struct alignas(__STDCPP_DEFAULT_NEW_ALIGNMENT__ * 4) S {};
  4. (void) ::operator new(sizeof(S), static_cast<std::align_val_t>(alignof(S)));
  5. }