Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/aligned-new5.C

raw
1 // { dg-options -faligned-new }
2 // { dg-do run }
3
4 #include <new>
5 #include <stdint.h>
6
7 struct A { int i; };
8
9 int main()
10 {
11 A* ap = new (std::align_val_t(64)) A;
12 if (intptr_t(ap) % 64 != 0)
13 __builtin_abort();
14 }