summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/global_references_2.f90
blob: 95666981ac0bc6541a6eeed18dc777c1a385cda2 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! This program tests the patch for PR25964. This is a
! regression that would not allow a common block and a statement
! to share the same name.
!
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
  common /foo/ a, b, c
  foo (x) = x + 1.0
  print *, foo (0.0)
  end