blob: 0cfbfc4bf1505bb84ed86b0ec8bdcf94d9a9e4d5 [file] [log] [blame]
typedef __SIZE_TYPE__ size_t;
void *operator new(size_t, unsigned int);
struct X{
X();
X(int);
};
void f(X *x = new X); // { dg-message "" }
void f(X *x = new X(4)); // { dg-error "" }
void f(X *x = new X[4]); // { dg-error "" }
void f(X *x = new (3) X(6)); // { dg-error "" }
void f(X *x = new (2) X[10]); // { dg-error "" }
void f(X *x = new X[10][5]); // { dg-error "" }