view gcc/testsuite/gfortran.dg/common_align_1.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
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) STOP 1
end subroutine one

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