aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/module_blank_common.f90
blob: d0e4311c5d77c00cc02ca29e248326d4923d6208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do run }
!
! This tests that blank common works in modules. PR23270
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
!
module global
  common a, b
  real    a, b
end module global
program blank_common
  use global
  common z
  complex z
  a = 999.0_4
  b = -999.0_4
  if (z.ne.cmplx (a,b)) STOP 1
end program blank_common