| OLD | NEW |
| 1 # Copyright 1998-1999, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1998-1999, 2007-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 # 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 |
| 4 # 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 |
| 5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # 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, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 |
| 16 # This file was written by Elena Zannoni (ezannoni@cygnus.com) | 16 # This file was written by Elena Zannoni (ezannoni@cygnus.com) |
| 17 | 17 |
| 18 # This file is part of the gdb testsuite | 18 # This file is part of the gdb testsuite |
| 19 # | 19 # |
| 20 # tests for arithmetic, logical and relational operators | 20 # tests for arithmetic, logical and relational operators |
| 21 # with mixed types | 21 # with mixed types |
| 22 # | 22 # |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| 26 if $tracelevel then { | |
| 27 strace $tracelevel | |
| 28 } | |
| 29 | |
| 30 # | 26 # |
| 31 # test running programs | 27 # test running programs |
| 32 # | 28 # |
| 33 | 29 |
| 34 set testfile "all-types" | 30 set testfile "all-types" |
| 35 set srcfile ${testfile}.c | 31 set srcfile ${testfile}.c |
| 36 set binfile ${objdir}/${subdir}/${testfile} | 32 set binfile ${objdir}/${subdir}/${testfile} |
| 37 | 33 |
| 38 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { | 34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { |
| 39 untested all-bin.exp | 35 untested all-bin.exp |
| 40 return -1 | 36 return -1 |
| 41 } | 37 } |
| 42 | 38 |
| 43 if [get_compiler_info ${binfile}] { | 39 if [get_compiler_info] { |
| 44 return -1 | 40 return -1 |
| 45 } | 41 } |
| 46 | 42 |
| 47 gdb_exit | 43 gdb_exit |
| 48 gdb_start | 44 gdb_start |
| 49 gdb_reinitialize_dir $srcdir/$subdir | 45 gdb_reinitialize_dir $srcdir/$subdir |
| 50 gdb_load ${binfile} | 46 gdb_load ${binfile} |
| 51 | 47 |
| 52 | 48 |
| 53 # | 49 # |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 174 |
| 179 gdb_test "print v_int && v_float" " = $true" "print value of v_int&&v_float" | 175 gdb_test "print v_int && v_float" " = $true" "print value of v_int&&v_float" |
| 180 | 176 |
| 181 gdb_test "print v_int && v_double" " = $false" \ | 177 gdb_test "print v_int && v_double" " = $false" \ |
| 182 "print value of v_int&&v_double" | 178 "print value of v_int&&v_double" |
| 183 | 179 |
| 184 | 180 |
| 185 | 181 |
| 186 | 182 |
| 187 | 183 |
| OLD | NEW |