aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/common_21.f90
blob: 73a1b58a1ab525c89a4977c70db6adc728ebf4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! { dg-options "-std=f2008" }
!
! PR fortran/48858
!
subroutine test
  integer :: l, m
  common /g/ l
  common /jj/ m
  bind(C,name="bar") :: /g/
  bind(C,name="foo") :: /jj/
end

subroutine g
  call jj()
end