]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-03-12 David Carlton <carlton@kealia.com>
authorDavid Carlton <carlton@bactrian.org>
Fri, 12 Mar 2004 17:50:05 +0000 (17:50 +0000)
committerDavid Carlton <carlton@bactrian.org>
Fri, 12 Mar 2004 17:50:05 +0000 (17:50 +0000)
* gdb.cp/pr-1553.exp: New.  Tests for PR c++/1553.
* gdb.cp/pr-1553.cc: Ditto.
* gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
pass branch.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/local.exp

index 3a1265d23eab42f73b6398b67b74b561eaf2b57d..911e8e8faa861ffeb8c9f9daed6ff80cea8b742d 100644 (file)
@@ -1,3 +1,10 @@
+2004-03-12  David Carlton  <carlton@kealia.com>
+
+       * gdb.cp/pr-1553.exp: New.  Tests for PR c++/1553.
+       * gdb.cp/pr-1553.cc: Ditto.
+       * gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
+       pass branch.
+
 2004-03-12  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.cp/templates.exp: Accept more template types.
index 5cd2ee9e8e2db67b116600ce8dea58df81f9e45f..6bae99ff2908f49df2440892493cf0a2132c3105 100644 (file)
@@ -263,10 +263,20 @@ gdb_expect {
 #
 # chastain 2002-04-08
 
+# NOTE (2004-02-24, carlton): This test really is invalid -
+# 'NestedInnerLocal' shouldn't be visible, so only the third
+# expression should count as a pass.  I'm leaving in the earlier
+# passes, however, given the current problematic state of our local
+# class support, but once we fix PR gdb/482, we should delete this
+# test.
+
 send_gdb "ptype NestedInnerLocal\n"
 gdb_expect {
   -re "type = class NestedInnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*int nil;\[\r\n\t \]*int nil_foo\\(int\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype NestedInnerLocal" }
   -re "type = class NestedInnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*int nil;\[\r\n\t \]*NestedInnerLocal *& *operator *= *\\((main${sep}::|)InnerLocal::NestedInnerLocal const *&\\);\[\r\n\t \]*NestedInnerLocal\\((main${sep}::|)InnerLocal::NestedInnerLocal const *&\\);\[\r\n\t \]*NestedInnerLocal\\((void|)\\);\[\r\n\t \]*int nil_foo\\(int\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype NestedInnerLocal" }
+  -re "No symbol \"NestedInnerLocal\" in current context\.\r\n$gdb_prompt $" {
+    pass "ptype NestedInnerLocal"
+  }
   -re ".*$gdb_prompt $"   {  fail "ptype NestedInnerLocal" }
   timeout             { fail "(timeout) ptype NestedInnerLocal" }
 }