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 }
|
// PRMS Id: 5921
|
// PRMS Id: 5921
|
// Bug: default arguments containing constructor calls persist incorrectly.
|
// Bug: default arguments containing constructor calls persist incorrectly.
|
|
|
class foo
|
class foo
|
{
|
{
|
public:
|
public:
|
foo();
|
foo();
|
foo(int x);
|
foo(int x);
|
public:
|
public:
|
int iamamember;
|
int iamamember;
|
};
|
};
|
|
|
class bar
|
class bar
|
{
|
{
|
public:
|
public:
|
bar();
|
bar();
|
int memberfunction(int i, const char *j, double k, foo foo1 = foo(0));
|
int memberfunction(int i, const char *j, double k, foo foo1 = foo(0));
|
};
|
};
|
|
|
int
|
int
|
pain(bar *bar1)
|
pain(bar *bar1)
|
{
|
{
|
return bar1->memberfunction(1, "x", 0.0);
|
return bar1->memberfunction(1, "x", 0.0);
|
}
|
}
|
|
|
int
|
int
|
pain2(bar *bar1)
|
pain2(bar *bar1)
|
{
|
{
|
return bar1->memberfunction(1, "x", 0.0);
|
return bar1->memberfunction(1, "x", 0.0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.