2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / common_1.f90
blob6ee146a5e33cdd3562b3730d271c68fbe3fbb557
1 ! { dg-do compile }
2 ! tests various allowed variants of the common statement
3 ! inspired by PR 18869
5 ! blank common block
6 common x
7 common y, z
8 common // xx
10 ! one named common block on a line
11 common /a/ e
13 ! appending to a common block
14 common /a/ g
16 ! several named common blocks on a line
17 common /foo/ a, /bar/ b ! note 'a' is also the name of the
18 ! above common block
19 common /baz/ c /foobar/ d, /bazbar/ f
21 end