diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-28 16:59:47 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-28 16:59:47 +0000 |
commit | 6036c742216f95a45095562947749755601a61f5 (patch) | |
tree | 0455547cdd233ee4964d6522636feadbc43f6fda /gdb/testsuite/gdb.cp/static-print-quit.cc | |
parent | de6a04210ceecbe450212f60129740fc22330050 (diff) | |
download | gdb-6036c742216f95a45095562947749755601a61f5.zip gdb-6036c742216f95a45095562947749755601a61f5.tar.gz gdb-6036c742216f95a45095562947749755601a61f5.tar.bz2 |
gdb/
* cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
obstack_begin after each obstack_free.
gdb/testsuite/
* gdb.cp/static-print-quit.exp, gdb.cp/static-print-quit.cc: New.
Diffstat (limited to 'gdb/testsuite/gdb.cp/static-print-quit.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/static-print-quit.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/static-print-quit.cc b/gdb/testsuite/gdb.cp/static-print-quit.cc new file mode 100644 index 0000000..a62e340 --- /dev/null +++ b/gdb/testsuite/gdb.cp/static-print-quit.cc @@ -0,0 +1,32 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 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 3 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, see <http://www.gnu.org/licenses/>. */ + +class D + { + public: + int loooooooooooooooooooooooooooooooooooooooooooooong; + }; + +class C + { + public: + int loooooooooooooooooooooooooooooooooooooooooooooong; + static D field; + }; + +D C::field; +C c; |