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.
36 lines
284 B
C++
36 lines
284 B
C++
namespace A
|
|
{
|
|
namespace B
|
|
{
|
|
int ab = 11;
|
|
}
|
|
}
|
|
|
|
namespace C
|
|
{
|
|
namespace D
|
|
{
|
|
using namespace A::B;
|
|
|
|
int
|
|
second()
|
|
{
|
|
ab;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
int
|
|
first()
|
|
{
|
|
//ab;
|
|
return D::second();
|
|
}
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
//ab;
|
|
return C::first();
|
|
}
|