URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
void *operator new(size_t, unsigned int);
|
void *operator new(size_t, unsigned int);
|
|
|
struct X{
|
struct X{
|
X();
|
X();
|
X(int);
|
X(int);
|
};
|
};
|
|
|
|
|
void f(X *x = new X); // { dg-error "" }
|
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 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 (3) X(6)); // { dg-error "" }
|
|
|
void f(X *x = new (2) X[10]); // { dg-error "" }
|
void f(X *x = new (2) X[10]); // { dg-error "" }
|
// { dg-message "candidate" "" { target *-*-* } 00 }
|
// { dg-message "candidate" "" { target *-*-* } 00 }
|
|
|
void f(X *x = new X[10][5]); // { dg-error "" }
|
void f(X *x = new X[10][5]); // { dg-error "" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.