| OLD | NEW |
| 1 # This file was written by Sue Kimura. (sue_kimura@hp.com) | 1 # This file was written by Sue Kimura. (sue_kimura@hp.com) |
| 2 # | 2 # |
| 3 # Test for CLLbs14602 -- problem with recognizing long double on 10.20. | 3 # Test for CLLbs14602 -- problem with recognizing long double on 10.20. |
| 4 # | 4 # |
| 5 # Source file: bs14602.c | 5 # Source file: bs14602.c |
| 6 | 6 |
| 7 if $tracelevel { | |
| 8 strace $tracelevel | |
| 9 } | |
| 10 | |
| 11 if { [skip_hp_tests] } { continue } | 7 if { [skip_hp_tests] } { continue } |
| 12 | 8 |
| 13 # | 9 # |
| 14 # test running programs | 10 # test running programs |
| 15 # | 11 # |
| 16 | 12 |
| 17 | 13 |
| 18 set testfile bs14602 | 14 set testfile bs14602 |
| 19 set srcfile ${testfile}.c | 15 set srcfile ${testfile}.c |
| 20 set binfile ${objdir}/${subdir}/${testfile} | 16 set binfile ${objdir}/${subdir}/${testfile} |
| 21 | 17 |
| 22 # Create and source the file that provides information about the compiler | 18 # Create and source the file that provides information about the compiler |
| 23 # used to compile the test case. | 19 # used to compile the test case. |
| 24 if [get_compiler_info ${binfile}] { | 20 if [get_compiler_info] { |
| 25 return -1; | 21 return -1; |
| 26 } | 22 } |
| 27 | 23 |
| 28 # set up appropriate compile option to recognize long double | 24 # set up appropriate compile option to recognize long double |
| 29 if {$hp_aCC_compiler || $hp_cc_compiler} { | 25 if {$hp_aCC_compiler || $hp_cc_compiler} { |
| 30 set ansi_option "-Ae" | 26 set ansi_option "-Ae" |
| 31 } else { | 27 } else { |
| 32 set ansi_option "" | 28 set ansi_option "" |
| 33 } | 29 } |
| 34 | 30 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 " = 0" \ | 102 " = 0" \ |
| 107 "print v_long_double - 3" | 103 "print v_long_double - 3" |
| 108 | 104 |
| 109 gdb_test "set variable v_long_double = v_double" \ | 105 gdb_test "set variable v_long_double = v_double" \ |
| 110 "" \ | 106 "" \ |
| 111 " set variable v_long_double with v_long_double" | 107 " set variable v_long_double with v_long_double" |
| 112 | 108 |
| 113 gdb_test "print v_long_double" \ | 109 gdb_test "print v_long_double" \ |
| 114 " = 98765.43210000000544823706150054932" \ | 110 " = 98765.43210000000544823706150054932" \ |
| 115 "print v_long_double - 4 " | 111 "print v_long_double - 4 " |
| OLD | NEW |