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 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
//Based on a report by Bill Currie
|
//Based on a report by Bill Currie
|
struct foo {
|
struct foo {
|
protected:
|
protected:
|
int x; // { dg-error "" } candidate
|
int x; // { dg-error "" } candidate
|
};
|
};
|
|
|
struct bar {
|
struct bar {
|
public:
|
public:
|
int x(); // { dg-error "" } candidate
|
int x(); // { dg-error "" } candidate
|
};
|
};
|
|
|
struct foobar: public foo, public bar {
|
struct foobar: public foo, public bar {
|
foobar();
|
foobar();
|
};
|
};
|
|
|
int func(int);
|
int func(int);
|
|
|
foobar::foobar()
|
foobar::foobar()
|
{
|
{
|
func(x); // { dg-error "" } ambiguous member access
|
func(x); // { dg-error "" } ambiguous member access
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.