OLD | NEW |
1 # Copyright 1997-2000, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1997-2000, 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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 # corresponding source file: varargs.c | 21 # corresponding source file: varargs.c |
22 | 22 |
23 #print find_max1(5,1,2,3,4,5) | 23 #print find_max1(5,1,2,3,4,5) |
24 #print find_max1(1,3) | 24 #print find_max1(1,3) |
25 #call find_max1(10,1,2,3,4,5,6,7,8,29,0) | 25 #call find_max1(10,1,2,3,4,5,6,7,8,29,0) |
26 #print find_max2(3,1,2,3) | 26 #print find_max2(3,1,2,3) |
27 #print find_max_double(5,1.0,17.0,2.0,3.0,4.0) | 27 #print find_max_double(5,1.0,17.0,2.0,3.0,4.0) |
28 #quit | 28 #quit |
29 | 29 |
30 | 30 |
31 if $tracelevel then { | |
32 strace $tracelevel | |
33 } | |
34 | |
35 | 31 |
36 set prototypes 0 | 32 set prototypes 0 |
37 set testfile "varargs" | 33 set testfile "varargs" |
38 set srcfile ${testfile}.c | 34 set srcfile ${testfile}.c |
39 set binfile ${objdir}/${subdir}/${testfile} | 35 set binfile ${objdir}/${subdir}/${testfile} |
40 | 36 |
41 if [get_compiler_info ${binfile}] { | 37 if [get_compiler_info] { |
42 return -1 | 38 return -1 |
43 } | 39 } |
44 | 40 |
45 set additional_flags {debug} | 41 set additional_flags {debug} |
46 if [support_complex_tests] { | 42 if [support_complex_tests] { |
47 lappend additional_flags "additional_flags=-DTEST_COMPLEX" | 43 lappend additional_flags "additional_flags=-DTEST_COMPLEX" |
48 } | 44 } |
49 | 45 |
50 if {$hp_cc_compiler} { | 46 if {$hp_cc_compiler} { |
51 lappend additional_flags "additional_flags=-Ae" | 47 lappend additional_flags "additional_flags=-Ae" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 setup_kfail_for_target gdb/12791 "arm*-*-*" | 126 setup_kfail_for_target gdb/12791 "arm*-*-*" |
131 gdb_test $test ".*= 4 \\+ 4 \\* I" $test | 127 gdb_test $test ".*= 4 \\+ 4 \\* I" $test |
132 | 128 |
133 set test "print find_max_long_double_real(4, ldc1, ldc2, ldc3, ldc4)" | 129 set test "print find_max_long_double_real(4, ldc1, ldc2, ldc3, ldc4)" |
134 setup_kfail_for_target gdb/12776 "i?86-*-*" | 130 setup_kfail_for_target gdb/12776 "i?86-*-*" |
135 setup_kfail_for_target gdb/12790 "x86_64-*-*" | 131 setup_kfail_for_target gdb/12790 "x86_64-*-*" |
136 setup_kfail_for_target gdb/12791 "arm*-*-*" | 132 setup_kfail_for_target gdb/12791 "arm*-*-*" |
137 gdb_test $test ".*= 4 \\+ 4 \\* I" $test | 133 gdb_test $test ".*= 4 \\+ 4 \\* I" $test |
138 | 134 |
139 } | 135 } |
OLD | NEW |