PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / aligned-new4.C
blobcc63a1455898661c254d1b5d42fbe1aa8e2d7eba
1 // { dg-options "-std=c++14 -Waligned-new" }
3 struct alignas(64) A { int i; };
4 struct alignas(64) B {
5   int i;
6   void *operator new(__SIZE_TYPE__);
7 };
9 int main()
11   A* ap = new A;                // { dg-warning "-Waligned-new" }
12   B* bp = new B;