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 assemble }
|
// { dg-do assemble }
|
// GROUPS passed overloading
|
// GROUPS passed overloading
|
class Bed {
|
class Bed {
|
public:
|
public:
|
static void bed_func(
|
static void bed_func(
|
int (*f)(int &, int, int));
|
int (*f)(int &, int, int));
|
};
|
};
|
class g_func {
|
class g_func {
|
public:
|
public:
|
static int save_status;
|
static int save_status;
|
|
|
// in compute_harshness, we should be using comptypes, not ==, to
|
// in compute_harshness, we should be using comptypes, not ==, to
|
// check if this is equivalent to the previous decl; the only
|
// check if this is equivalent to the previous decl; the only
|
// difference is the default arg
|
// difference is the default arg
|
static int rpt_func(int &status, int expand,
|
static int rpt_func(int &status, int expand,
|
int restore_cursor=1 );
|
int restore_cursor=1 );
|
};
|
};
|
|
|
int main (int argc,
|
int main (int argc,
|
char **argv,
|
char **argv,
|
char **envp)
|
char **envp)
|
{
|
{
|
Bed::bed_func(g_func::rpt_func);
|
Bed::bed_func(g_func::rpt_func);
|
return(1);
|
return(1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.