binutils-gdb/gdb/testsuite/gdb.cp/namespace-nested-import.cc
Sami Wagiaalla 794684b64f 2009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
* dwarf2read.c (read_import_statement): Properly set import location
	and destination.
	* cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
	inner, char* outer arguments. Updated callers.

2009-06-29  Sami Wagiaalla  <swagiaal@redhat.com>

	* gdb.cp/namespace-nested-import.cc: New test.
	* gdb.cp/namespace-nested-import.exp: New test.
2009-06-29 15:18:07 +00:00

13 lines
134 B
C++

namespace A{
namespace B{
namespace C{
int x = 5;
}
}
}
int main(){
using namespace A::B;
return C::x;
}