blob: eb178d46dff8cc9768d2a47cf24034d060e74f57 [file] [log] [blame]
// { dg-options "-std=c++14 -Waligned-new=all" }
struct alignas(64) A { int i; };
struct alignas(64) B {
int i;
void *operator new(__SIZE_TYPE__);
};
int main()
{
A* ap = new A; // { dg-warning "-Waligned-new" }
B* bp = new B; // { dg-warning "-Waligned-new" }
}