annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! This program tests that use associated common blocks work.
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! provided by Paul Thomas - pault@gcc.gnu.org
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 module m1
kono
parents:
diff changeset
7 common /x/ a
kono
parents:
diff changeset
8 end module m1
kono
parents:
diff changeset
9 module m2
kono
parents:
diff changeset
10 common /x/ a
kono
parents:
diff changeset
11 end module m2
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 subroutine foo ()
kono
parents:
diff changeset
14 use m2
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
15 if (a.ne.99.0) STOP 1
111
kono
parents:
diff changeset
16 end subroutine foo
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 program collision
kono
parents:
diff changeset
19 use m1
kono
parents:
diff changeset
20 use m2, only: b=>a
kono
parents:
diff changeset
21 b = 99.0
kono
parents:
diff changeset
22 call foo ()
kono
parents:
diff changeset
23 end program collision