URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/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 900324_03
|
// g++ 1.37.1 bug 900324_03
|
|
|
// g++ is unable to correctly parse declarations of non-global function-pointer
|
// g++ is unable to correctly parse declarations of non-global function-pointer
|
// variables and/or function-pointer formal parameters.
|
// variables and/or function-pointer formal parameters.
|
|
|
// Cfront 2.0 passes this test.
|
// Cfront 2.0 passes this test.
|
|
|
// keywords: syntax, function pointers, block local, formal
|
// keywords: syntax, function pointers, block local, formal
|
|
|
void (*p0)(); // OK
|
void (*p0)(); // OK
|
|
|
void function_0 ()
|
void function_0 ()
|
{
|
{
|
void (*p1)(); // { dg-bogus "" } s
|
void (*p1)(); // { dg-bogus "" } s
|
}
|
}
|
|
|
void function_1 (void (*p2)()); // { dg-bogus "" } s
|
void function_1 (void (*p2)()); // { dg-bogus "" } s
|
|
|
void (*function_2 ()) (); // OK
|
void (*function_2 ()) (); // OK
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.