binutils-gdb/gdb/testsuite/gdb.cp/nsnoimports.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

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