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.
This commit is contained in:
Sami Wagiaalla
2009-06-29 15:18:07 +00:00
parent 2497b49845
commit 794684b64f
7 changed files with 127 additions and 38 deletions

View File

@ -0,0 +1,12 @@
namespace A{
namespace B{
namespace C{
int x = 5;
}
}
}
int main(){
using namespace A::B;
return C::x;
}