File: aligned_new_probe.cpp

package info (click to toggle)
range-v3 0.12.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,620 kB
  • sloc: cpp: 76,839; xml: 226; sh: 89; python: 34; makefile: 16; perl: 15
file content (6 lines) | stat: -rw-r--r-- 175 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
#include <new>

int main() {
    struct alignas(__STDCPP_DEFAULT_NEW_ALIGNMENT__ * 4) S {};
    (void) ::operator new(sizeof(S), static_cast<std::align_val_t>(alignof(S)));
}