URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 107 |
Rev 1765 |
namespace AAA {
|
namespace AAA {
|
char c;
|
char c;
|
int i;
|
int i;
|
int A_xyzq (int);
|
int A_xyzq (int);
|
char xyzq (char);
|
char xyzq (char);
|
class inA {
|
class inA {
|
public:
|
public:
|
int xx;
|
int xx;
|
int fum (int);
|
int fum (int);
|
};
|
};
|
};
|
};
|
|
|
int AAA::inA::fum (int i)
|
int AAA::inA::fum (int i)
|
{
|
{
|
return 10 + i;
|
return 10 + i;
|
}
|
}
|
|
|
namespace BBB {
|
namespace BBB {
|
char c;
|
char c;
|
int i;
|
int i;
|
int B_xyzq (int);
|
int B_xyzq (int);
|
char xyzq (char);
|
char xyzq (char);
|
|
|
namespace CCC {
|
namespace CCC {
|
char xyzq (char);
|
char xyzq (char);
|
};
|
};
|
|
|
class Class {
|
class Class {
|
public:
|
public:
|
char xyzq (char);
|
char xyzq (char);
|
int dummy;
|
int dummy;
|
};
|
};
|
};
|
};
|
|
|
int AAA::A_xyzq (int x)
|
int AAA::A_xyzq (int x)
|
{
|
{
|
return 2 * x;
|
return 2 * x;
|
}
|
}
|
|
|
char AAA::xyzq (char c)
|
char AAA::xyzq (char c)
|
{
|
{
|
return 'a';
|
return 'a';
|
}
|
}
|
|
|
|
|
int BBB::B_xyzq (int x)
|
int BBB::B_xyzq (int x)
|
{
|
{
|
return 3 * x;
|
return 3 * x;
|
}
|
}
|
|
|
char BBB::xyzq (char c)
|
char BBB::xyzq (char c)
|
{
|
{
|
return 'b';
|
return 'b';
|
}
|
}
|
|
|
char BBB::CCC::xyzq (char c)
|
char BBB::CCC::xyzq (char c)
|
{
|
{
|
return 'z';
|
return 'z';
|
}
|
}
|
|
|
char BBB::Class::xyzq (char c)
|
char BBB::Class::xyzq (char c)
|
{
|
{
|
return 'o';
|
return 'o';
|
}
|
}
|
|
|
void marker1(void)
|
void marker1(void)
|
{
|
{
|
return;
|
return;
|
}
|
}
|
|
|
|
|
int main ()
|
int main ()
|
{
|
{
|
using AAA::inA;
|
using AAA::inA;
|
char c1;
|
char c1;
|
|
|
using namespace BBB;
|
using namespace BBB;
|
|
|
c1 = xyzq ('x');
|
c1 = xyzq ('x');
|
c1 = AAA::xyzq ('x');
|
c1 = AAA::xyzq ('x');
|
c1 = BBB::CCC::xyzq ('m');
|
c1 = BBB::CCC::xyzq ('m');
|
|
|
inA ina;
|
inA ina;
|
|
|
ina.xx = 33;
|
ina.xx = 33;
|
|
|
int y;
|
int y;
|
|
|
y = AAA::A_xyzq (33);
|
y = AAA::A_xyzq (33);
|
y += B_xyzq (44);
|
y += B_xyzq (44);
|
|
|
BBB::Class cl;
|
BBB::Class cl;
|
|
|
c1 = cl.xyzq('e');
|
c1 = cl.xyzq('e');
|
|
|
marker1();
|
marker1();
|
|
|
}
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.