URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [overload/] [new1.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
typedef __SIZE_TYPE__ size_t;
void *operator new(size_t, unsigned int);
struct X{
X();
X(int);
};
void f(X *x = new X); // { dg-error "" }
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 "" }
// { dg-message "candidate" "" { target *-*-* } 00 }
void f(X *x = new X[10][5]); // { dg-error "" }
Go to most recent revision | Compare with Previous | Blame | View Log