summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec.gnu@mindspring.com>2004-03-09 17:34:39 +0000
committerMichael Chastain <mec.gnu@mindspring.com>2004-03-09 17:34:39 +0000
commita72c1ede4fe3ba94f7d299b16bc256ac6a15c5a7 (patch)
treea6f4207b35113e99bcebd45bbbaac797f7abbd2f
parenta466c674d5bf3a12c38b2683bfef9f2d17d8a07c (diff)
downloadgdb-a72c1ede4fe3ba94f7d299b16bc256ac6a15c5a7.tar.gz
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
From Corinna Vinschen with modifications. * gdb.cp/classes.cc (enums1): Add a line to extend scope of local variable obj_with_enum. * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL results with obj_with_enum.
-rw-r--r--gdb/testsuite/ChangeLog8
-rw-r--r--gdb/testsuite/gdb.cp/classes.cc3
-rw-r--r--gdb/testsuite/gdb.cp/classes.exp5
3 files changed, 10 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 82469e822f3..a1d5f1278e1 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,13 @@
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
+ From Corinna Vinschen with modifications.
+ * gdb.cp/classes.cc (enums1): Add a line to extend scope of
+ local variable obj_with_enum.
+ * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL
+ results with obj_with_enum.
+
+2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
+
* gdb.cp/classes.cc: New file, copied from misc.cc.
* gdb.cp/classes.exp: Use classes.cc rather than misc.cc.
diff --git a/gdb/testsuite/gdb.cp/classes.cc b/gdb/testsuite/gdb.cp/classes.cc
index 7d69ed225ae..d09f38fc36d 100644
--- a/gdb/testsuite/gdb.cp/classes.cc
+++ b/gdb/testsuite/gdb.cp/classes.cc
@@ -1,6 +1,6 @@
/* This testcase is part of GDB, the GNU debugger.
- Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2004
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -453,6 +453,7 @@ void enums1 ()
obj_with_enum.x = 0;
enums2 ();
obj_with_enum.priv_enum = ClassWithEnum::green;
+ obj_with_enum.x = 1;
}
class ClassParam {
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index 27abe0d54a5..0b723e591f6 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -633,11 +633,6 @@ proc test_enums {} {
gdb_test "next" ""
- # TODO: with gcc HEAD 2003-12-28 21:08:30 UTC -gdwarf-2,
- # gdb says that obj_with_enum is out of scope here and the
- # tests after this FAIL. This needs investigation.
- # -- chastain 2003-12-30
-
# print the object again
gdb_test "print obj_with_enum" \