blob: 2b93a7b0919bc3a4e4ccb07f8d76124cca303cc2 [file] [log] [blame]
// We don't allocate a cookie to help us run the destructor if it's trivial,
// even if it's deleted.
// { dg-do run { target c++11 } }
struct A
{
~A() = delete;
};
void *p = 0;
void *operator new[](__SIZE_TYPE__ t)
{
p = ::operator new (t);
return p;
}
int main()
{
A* ap = new A[5];
return ap != p;
}