aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g77.f-torture/execute/980628-4.f
blob: 40bd6e6df51b018246dcd7877e3b7cad613b3057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* g77 0.5.23 and previous had bugs involving too little space
* allocated for EQUIVALENCE and COMMON areas needing initial
* padding to meet alignment requirements of the system,
* including when initial values are provided (e.g. DATA).

      program test
      implicit none

      real r
      double precision d
      common /cmn/ r, d

      if (r .ne. 1.) call abort
      if (d .ne. 10.) call abort

      end

      block data init
      implicit none

      real r
      double precision d
      common /cmn/ r, d

      data r/1./, d/10./

      end