URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do run }
|
// { dg-do run }
|
// g++ 1.37.1 bug 900519_05
|
// g++ 1.37.1 bug 900519_05
|
|
|
// g++ fails to allow the use of function-reference types.
|
// g++ fails to allow the use of function-reference types.
|
|
|
// cfront 2.0 passes this test.
|
// cfront 2.0 passes this test.
|
|
|
// keywords: function types, reference types
|
// keywords: function types, reference types
|
|
|
typedef void (func_type) (int, int);
|
typedef void (func_type) (int, int);
|
typedef func_type& func_ref_type;
|
typedef func_type& func_ref_type;
|
|
|
void function (int arg1, int arg2)
|
void function (int arg1, int arg2)
|
{
|
{
|
}
|
}
|
|
|
func_type& global_func_ref1 = function;
|
func_type& global_func_ref1 = function;
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.