2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / aligned-new5.C
blob525129e4c4049f655acc47f64a5ac8f0bc564eca
1 // { dg-options -faligned-new }
2 // { dg-do run }
4 #include <new>
5 #include <stdint.h>
7 struct A { int i; };
9 int main()
11   A* ap = new (std::align_val_t(64)) A;
12   if (intptr_t(ap) % 64 != 0)
13     __builtin_abort();