mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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.
38 lines
325 B
C++
38 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();
|
|
}
|