public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-keiths-expr-cumulative: Added namespace loop test to namespace-recursive.exp
@ 2009-08-12 20:42 swagiaal
  0 siblings, 0 replies; only message in thread
From: swagiaal @ 2009-08-12 20:42 UTC (permalink / raw)
  To: archer-commits

The branch, archer-keiths-expr-cumulative has been updated
       via  9401a14311038ad70bf17e4865f7dab7b91966ce (commit)
      from  74b786affde6239df0b070e4260f9f7dc5aab931 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 9401a14311038ad70bf17e4865f7dab7b91966ce
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Wed Aug 12 16:39:14 2009 -0400

    Added namespace loop test to namespace-recursive.exp

-----------------------------------------------------------------------

Summary of changes:
 gdb/testsuite/gdb.cp/namespace-recursive.cc  |    9 ++++++++-
 gdb/testsuite/gdb.cp/namespace-recursive.exp |   14 ++++++++++----
 2 files changed, 18 insertions(+), 5 deletions(-)

First 500 lines of diff:
diff --git a/gdb/testsuite/gdb.cp/namespace-recursive.cc b/gdb/testsuite/gdb.cp/namespace-recursive.cc
index cb712fa..f527d83 100644
--- a/gdb/testsuite/gdb.cp/namespace-recursive.cc
+++ b/gdb/testsuite/gdb.cp/namespace-recursive.cc
@@ -10,7 +10,14 @@ namespace C{
   using namespace B;
 }
 
+//---------------
+namespace D{
+  using namespace D;
+  int dx = 99;
+}
+using namespace D;
+
 int main(){
   using namespace C;
-  return ax;
+  return ax + dx;
 }
\ No newline at end of file
diff --git a/gdb/testsuite/gdb.cp/namespace-recursive.exp b/gdb/testsuite/gdb.cp/namespace-recursive.exp
index 4e6ad20..ed81e52 100644
--- a/gdb/testsuite/gdb.cp/namespace-recursive.exp
+++ b/gdb/testsuite/gdb.cp/namespace-recursive.exp
@@ -40,14 +40,20 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
-############################################
-# test printing of namespace imported within
-# the function.
-
 if ![runto_main] then {
     perror "couldn't run to breakpoint main"
     continue
 }
 
+############################################
+# test printing from namespace imported into
+# imported namespace
+
 setup_xfail *-*-*
 gdb_test "print ax" "= 9"
+
+############################################
+# test that gdb can print without falling 
+# into search loop
+
+gdb_test "print dx" "= 99"


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-12 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-12 20:42 [SCM] archer-keiths-expr-cumulative: Added namespace loop test to namespace-recursive.exp swagiaal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).