mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
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.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
|
||||||
|
|
||||||
* gdb.cp/classes.cc: New file, copied from misc.cc.
|
* gdb.cp/classes.cc: New file, copied from misc.cc.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* This testcase is part of GDB, the GNU debugger.
|
/* 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.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
@ -453,6 +453,7 @@ void enums1 ()
|
|||||||
obj_with_enum.x = 0;
|
obj_with_enum.x = 0;
|
||||||
enums2 ();
|
enums2 ();
|
||||||
obj_with_enum.priv_enum = ClassWithEnum::green;
|
obj_with_enum.priv_enum = ClassWithEnum::green;
|
||||||
|
obj_with_enum.x = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ClassParam {
|
class ClassParam {
|
||||||
|
@ -633,11 +633,6 @@ proc test_enums {} {
|
|||||||
|
|
||||||
gdb_test "next" ""
|
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
|
# print the object again
|
||||||
|
|
||||||
gdb_test "print obj_with_enum" \
|
gdb_test "print obj_with_enum" \
|
||||||
|
Reference in New Issue
Block a user