URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: aroach@stoic.electriceyeball.com
|
// Origin: aroach@stoic.electriceyeball.com
|
|
|
// PR c++/3332: Friend function lookup in class defined outside its
|
// PR c++/3332: Friend function lookup in class defined outside its
|
// namespace
|
// namespace
|
|
|
namespace N
|
namespace N
|
{
|
{
|
class A;
|
class A;
|
}
|
}
|
|
|
class N::A
|
class N::A
|
{
|
{
|
void x();
|
void x();
|
friend void func(void);
|
friend void func(void);
|
};
|
};
|
|
|
namespace N
|
namespace N
|
{
|
{
|
void func(void);
|
void func(void);
|
}
|
}
|
|
|
void N::func(void)
|
void N::func(void)
|
{
|
{
|
N::A a;
|
N::A a;
|
a.x();
|
a.x();
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.