| OLD | NEW |
| 1 # Copyright 1998-1999, 2003-2004, 2007-2012 Free Software Foundation, | 1 # Copyright 1998-2013 Free Software Foundation, Inc. |
| 2 # Inc. | |
| 3 | 2 |
| 4 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
| 6 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 7 # (at your option) any later version. | 6 # (at your option) any later version. |
| 8 # | 7 # |
| 9 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 24 # | 23 # |
| 25 # test running programs | 24 # test running programs |
| 26 # | 25 # |
| 27 | 26 |
| 28 | 27 |
| 29 if { [skip_cplus_tests] } { continue } | 28 if { [skip_cplus_tests] } { continue } |
| 30 | 29 |
| 31 standard_testfile .cc | 30 standard_testfile .cc |
| 32 | 31 |
| 33 if [get_compiler_info "c++"] { | 32 if [get_compiler_info "c++"] { |
| 34 return -1; | 33 return -1 |
| 35 } | 34 } |
| 36 | 35 |
| 37 if { [test_compiler_info gcc-*] } then { continue } | 36 if { [test_compiler_info gcc-*] } then { continue } |
| 38 | 37 |
| 39 if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { | 38 if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { |
| 40 return -1 | 39 return -1 |
| 41 } | 40 } |
| 42 | 41 |
| 43 # | 42 # |
| 44 # set it up at a breakpoint so we can play with the variable values | 43 # set it up at a breakpoint so we can play with the variable values |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 gdb_expect { | 209 gdb_expect { |
| 211 -re "warning: A1 ambiguous.*Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x
= \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" { | 210 -re "warning: A1 ambiguous.*Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x
= \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" { |
| 212 fail "print (A1)jva1v (ambiguity reported)" | 211 fail "print (A1)jva1v (ambiguity reported)" |
| 213 } | 212 } |
| 214 -re "\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt
$" { pass "print (A1)jva1v" | 213 -re "\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt
$" { pass "print (A1)jva1v" |
| 215 } | 214 } |
| 216 -re ".*$gdb_prompt $" { fail "print (A1)jva1v (??)" } | 215 -re ".*$gdb_prompt $" { fail "print (A1)jva1v (??)" } |
| 217 timeout { fail "(timeout) print (A1)jva1v" } | 216 timeout { fail "(timeout) print (A1)jva1v" } |
| 218 } | 217 } |
| 219 | 218 |
| OLD | NEW |