URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// Bug: g++ doesn't keep track of the lexical context of friends properly.
|
// Bug: g++ doesn't keep track of the lexical context of friends properly.
|
|
|
extern "C" void exit(int);
|
extern "C" void exit(int);
|
|
|
struct B;
|
struct B;
|
struct A {
|
struct A {
|
static void f () { exit (1); }
|
static void f () { exit (1); }
|
};
|
};
|
|
|
struct B {
|
struct B {
|
static void f () { exit (0); }
|
static void f () { exit (0); }
|
friend void g (B) { f (); }
|
friend void g (B) { f (); }
|
};
|
};
|
|
|
int main ()
|
int main ()
|
{
|
{
|
B b;
|
B b;
|
g (b);
|
g (b);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.