old-cross-binutils/gdb/testsuite/gdb.cp/nsnested.cc
Sami Wagiaalla 2db19d1e4d Added new namespace tests.
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.
2011-01-31 18:29:02 +00:00

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();
}