URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed operator-new
|
// GROUPS passed operator-new
|
typedef struct {
|
typedef struct {
|
int a;
|
int a;
|
} AStruct;
|
} AStruct;
|
|
|
void MakeBug() {
|
void MakeBug() {
|
AStruct *job;
|
AStruct *job;
|
|
|
// This used to crash, it should now give error(s).
|
// This used to crash, it should now give error(s).
|
job = new AStruct[];// { dg-error "" } .*
|
job = new AStruct[];// { dg-error "" } .*
|
|
|
job = new AStruct;
|
job = new AStruct;
|
}
|
}
|
|
|
int main () {
|
int main () {
|
MakeBug();
|
MakeBug();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.