aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/classes.cc
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-03-09 17:34:39 +0000
committerMichael Chastain <mec@google.com>2004-03-09 17:34:39 +0000
commitc7414a01d5a3a5ab881607cde028f3d6bb9ed860 (patch)
treec6e1532267eae12b15619bba28231d9c8213884a /gdb/testsuite/gdb.cp/classes.cc
parented69573cd5b6e7bd983f023088bf8cc527f5f90c (diff)
downloadgdb-c7414a01d5a3a5ab881607cde028f3d6bb9ed860.zip
gdb-c7414a01d5a3a5ab881607cde028f3d6bb9ed860.tar.gz
gdb-c7414a01d5a3a5ab881607cde028f3d6bb9ed860.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.cp/classes.cc')
-rw-r--r--gdb/testsuite/gdb.cp/classes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/classes.cc b/gdb/testsuite/gdb.cp/classes.cc
index 7d69ed2..d09f38f 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 {