1 # Copyright 2013-2016 Free Software Foundation, Inc.
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
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
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/>.
16 if { [skip_fortran_tests] } { continue }
18 standard_testfile type.f90
19 load_lib "fortran.exp"
21 if { [prepare_for_testing ${testfile}.exp ${testfile} \
22 ${srcfile} {debug f90}] } {
31 # Depending on the compiler being used, the type names can be printed differently.
32 set int [fortran_int4]
33 set real [fortran_real4]
35 gdb_breakpoint [gdb_get_line_number "bp1"]
36 gdb_continue_to_breakpoint "bp1"
38 set t1_i "$int :: t1_i"
39 set t1_r "$real :: t1_r"
41 gdb_test "whatis t1" "type = Type t1"
42 gdb_test "whatis t1v" "type = Type t1"
45 [multi_line "type = Type t1" \
50 gdb_test "ptype t1v" \
51 [multi_line "type = Type t1" \