135137Sphk# Copyright 2012-2023 Free Software Foundation, Inc. 235137Sphk 335137Sphk# This program is free software; you can redistribute it and/or modify 435137Sphk# it under the terms of the GNU General Public License as published by 535137Sphk# the Free Software Foundation; either version 3 of the License, or 635137Sphk# (at your option) any later version. 735137Sphk# 835137Sphk# This program is distributed in the hope that it will be useful, 935137Sphk# but WITHOUT ANY WARRANTY; without even the implied warranty of 1035137Sphk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1135137Sphk# GNU General Public License for more details. 1235137Sphk# 1335137Sphk# You should have received a copy of the GNU General Public License 1435137Sphk# along with this program. If not, see <http://www.gnu.org/licenses/>. 1535137Sphk 1635137Sphkif { [skip_cplus_tests] } { return } 1735137Sphk 1835137Sphkstandard_testfile .cc 1935137Sphk 2035137Sphkif {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} { 2135137Sphk return -1 2235137Sphk} 2335137Sphk 2435137Sphkif {![runto_main]} { 2535137Sphk return 2635137Sphk} 2735137Sphk 2835137Sphkgdb_breakpoint [gdb_get_line_number "Break here"] 2935137Sphkgdb_continue_to_breakpoint here 3035137Sphk 3135137Sphk# Regression test for 3235137Sphk# http://sourceware.org/bugzilla/show_bug.cgi?id=9307. 3335137Sphkgdb_test "display k" "1: k = 23" 3435137Sphk