summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.fortran/info-types-2.f90
blob: a5b56c5f62f2a5a48c92bb5ad55060b829cd86a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
! Copyright 2019-2020 Free Software Foundation, Inc.
!
! This program is free software; you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 2 of the License, or
! (at your option) any later version.
!
! This program is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with this program.  If not, see <http://www.gnu.org/licenses/>.

! Comment just to change the line number on which
! mod2 is defined.
module mod2
  integer :: mod2_var_1 = 123
  real, parameter :: mod2_var_2 = 0.5
contains
  subroutine sub_m2_a(a, b)
    integer :: a
    logical :: b
    print*, "sub_m2_a = ", abc
    print*, "a = ", a
    print*, "b = ", b
  end subroutine sub_m2_a

  logical function sub_m2_b(x)
    real :: x
    print*, "sub_m2_b = ", cde
    print*, "x = ", x
    sub_m2_b = .true.
  end function sub_m2_b
end module mod2