URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// g++ 1.37.1 bug 900520_05
|
// g++ 1.37.1 bug 900520_05
|
|
|
// The following legal code gets syntax errors from g++.
|
// The following legal code gets syntax errors from g++.
|
|
|
// keywords: syntax, unimplemented, operator new, initialization, pointer types
|
// keywords: syntax, unimplemented, operator new, initialization, pointer types
|
|
|
struct struct_0 {
|
struct struct_0 {
|
};
|
};
|
|
|
char *cp;
|
char *cp;
|
static struct_0 *sp;
|
static struct_0 *sp;
|
|
|
void test0 ()
|
void test0 ()
|
{
|
{
|
new char * (cp); // { dg-bogus "" }
|
new char * (cp); // { dg-bogus "" }
|
}
|
}
|
|
|
void test1 ()
|
void test1 ()
|
{
|
{
|
new struct_0 * (sp); // { dg-bogus "" }
|
new struct_0 * (sp); // { dg-bogus "" }
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.