view gcc/testsuite/gfortran.fortran-torture/execute/common_size.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! The size of common 'com1' should be 80, instead of 112.
program common_size
   real (kind=8) a(8)
   real (kind=8) b(5), c(5)
   common /com1/b,c
   equivalence (a(1), b(2))
   b = 100
   c = 200 
   if ((a (4) .ne. 100) .or. (a(5) .ne. 200)) STOP 1
end