GDB copyright headers update after running GDB's copyright.py script.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.fortran / whatis_type.exp
1 # Copyright 2013-2016 Free Software Foundation, Inc.
2
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.
7 #
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.
12 #
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/>.
15
16 if { [skip_fortran_tests] } { continue }
17
18 standard_testfile type.f90
19
20 if { [prepare_for_testing ${testfile}.exp ${testfile} \
21 ${srcfile} {debug f90}] } {
22 return -1
23 }
24
25 if ![runto MAIN__] {
26 fail "run to MAIN__"
27 return
28 }
29
30 gdb_breakpoint [gdb_get_line_number "bp1"]
31 gdb_continue_to_breakpoint "bp1"
32
33 set t1_i "integer\\\(kind=4\\\) :: t1_i"
34 set t1_r "real\\\(kind=4\\\) :: t1_r"
35
36 gdb_test "whatis t1" \
37 "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
38 "whatis t1"
39 gdb_test "whatis t1v" \
40 "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
41 "whatis t1v"
42
43 gdb_test "ptype t1" \
44 "type = Type t1\r\n ${t1_i}\r\n ${t1_r}\r\nEnd Type t1" \
45 "ptype t1"
46 gdb_test "ptype t1v" \
47 "type = Type t1\r\n ${t1_i}\r\n ${t1_r}\r\nEnd Type t1" \
48 "ptype t1v"
This page took 0.03207 seconds and 4 git commands to generate.