]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.fortran/info-types-2.f90
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.fortran / info-types-2.f90
1 ! Copyright 2019-2021 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 2 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 ! Comment just to change the line number on which
17 ! mod2 is defined.
18 module mod2
19 integer :: mod2_var_1 = 123
20 real, parameter :: mod2_var_2 = 0.5
21 contains
22 subroutine sub_m2_a(a, b)
23 integer :: a
24 logical :: b
25 print*, "sub_m2_a = ", abc
26 print*, "a = ", a
27 print*, "b = ", b
28 end subroutine sub_m2_a
29
30 logical function sub_m2_b(x)
31 real :: x
32 print*, "sub_m2_b = ", cde
33 print*, "x = ", x
34 sub_m2_b = .true.
35 end function sub_m2_b
36 end module mod2