mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
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:
12
gdb/testsuite/gdb.cp/namespace-nested-import.cc
Normal file
12
gdb/testsuite/gdb.cp/namespace-nested-import.cc
Normal file
@ -0,0 +1,12 @@
|
||||
namespace A{
|
||||
namespace B{
|
||||
namespace C{
|
||||
int x = 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main(){
|
||||
using namespace A::B;
|
||||
return C::x;
|
||||
}
|
Reference in New Issue
Block a user