diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2009-06-29 15:18:07 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2009-06-29 15:18:07 +0000 |
commit | 794684b64f780fbecb3443d6783284919c83c07f (patch) | |
tree | c5ff18ecd050872ef7ed2b7cf7fed96765dfb207 /gdb/testsuite/gdb.cp/namespace-nested-import.cc | |
parent | 2497b4984582be980b40913ef1bf561ccad2f265 (diff) | |
download | binutils-794684b64f780fbecb3443d6783284919c83c07f.zip binutils-794684b64f780fbecb3443d6783284919c83c07f.tar.gz binutils-794684b64f780fbecb3443d6783284919c83c07f.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.cp/namespace-nested-import.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/namespace-nested-import.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/namespace-nested-import.cc b/gdb/testsuite/gdb.cp/namespace-nested-import.cc new file mode 100644 index 0000000..551f8ee --- /dev/null +++ b/gdb/testsuite/gdb.cp/namespace-nested-import.cc @@ -0,0 +1,12 @@ +namespace A{ + namespace B{ + namespace C{ + int x = 5; + } + } +} + +int main(){ + using namespace A::B; + return C::x; +} |