view gcc/testsuite/gfortran.dg/common_align_1.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
! { dg-options "-fno-align-commons" }

! PR fortran/37486
!
! Test for -fno-align-commons.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>.

subroutine one()
  integer :: i
  common i
  if (i/=5) call abort()
end subroutine one

program test
integer :: i
real(8) :: r8
common i, r8 
i = 5
call one()
end program test