summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/947.f
blob: 247c1a09e548118520192628c277e9ac4123cc72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
c { dg-do run }
      DIMENSION A(-5:5)
      INTEGER(kind=1) IM5, IZ, IP5
      INTEGER(kind=2) IM1, IP1
      PARAMETER (IM5=-5, IM1=-1, IZ=0, IP1=1, IP5=5)
      DATA A(IM5) /-5./, A(IM1) /-1./
      DATA A(IZ)  /0./
      DATA A(IP5) /+5./, A(IP1) /+1./
      IF (A(IM5) .NE. -5. .OR. A(IM1) .NE. -1. .OR.
     ,    A(IZ)  .NE.  0. .OR.
     ,    A(IP5) .NE. +5. .OR. A(IP1) .NE. +1. )
     ,  CALL ABORT
      END