Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/module_commons_1.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! This program tests that use associated common blocks work. ! ! provided by Paul Thomas - pault@gcc.gnu.org ! module m1 common /x/ a end module m1 module m2 common /x/ a end module m2 subroutine foo () use m2 if (a.ne.99.0) STOP 1 end subroutine foo program collision use m1 use m2, only: b=>a b = 99.0 call foo () end program collision