URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 330 |
Rev 513 |
namespace A
|
namespace A
|
{
|
{
|
int x = 11;
|
int x = 11;
|
}
|
}
|
|
|
int x = 22;
|
int x = 22;
|
int y = 0;
|
int y = 0;
|
|
|
class B
|
class B
|
{
|
{
|
public:
|
public:
|
int x;
|
int x;
|
|
|
int
|
int
|
func()
|
func()
|
{
|
{
|
x = 33;
|
x = 33;
|
y++; // marker1
|
y++; // marker1
|
|
|
{
|
{
|
int x = 44;
|
int x = 44;
|
y++; // marker2
|
y++; // marker2
|
|
|
{
|
{
|
int x = 55;
|
int x = 55;
|
y++; // marker3
|
y++; // marker3
|
|
|
{
|
{
|
using namespace A;
|
using namespace A;
|
y++; // marker4
|
y++; // marker4
|
|
|
{
|
{
|
using A::x;
|
using A::x;
|
y++; // marker5
|
y++; // marker5
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
};
|
};
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
B theB;
|
B theB;
|
return theB.func();
|
return theB.func();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.