+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.
+
+2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
+
+ * gdb.cp/misc.cc: Add copyright notice.
+
2004-03-05 David Carlton <carlton@kealia.com>
* gdb.cp/rtti.exp: Add 'print *obj3' test.
if { [skip_cplus_tests] } { continue }
-set testfile "misc"
+set testfile "classes"
set srcfile ${testfile}.cc
set binfile ${objdir}/${subdir}/${testfile}
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" \
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
// Test various -*- C++ -*- things.
// ====================== basic C++ types =======================