2db19d1e4d
2011-01-31 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/nsnested.cc: New. * gdb.cp/nsnested.exp: New. * gdb.cp/nsnoimports.exp: New. * gdb.cp/nsnoimports.cc: New.
37 lines
325 B
C++
37 lines
325 B
C++
|
|
namespace A
|
|
{
|
|
int _a = 11;
|
|
|
|
namespace B{
|
|
|
|
int ab = 22;
|
|
|
|
namespace C{
|
|
|
|
int abc = 33;
|
|
|
|
int second(){
|
|
return 0;
|
|
}
|
|
|
|
}
|
|
|
|
int first(){
|
|
_a;
|
|
ab;
|
|
C::abc;
|
|
return C::second();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
main()
|
|
{
|
|
A::_a;
|
|
A::B::ab;
|
|
A::B::C::abc;
|
|
return A::B::first();
|
|
}
|