summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/9263.f
blob: 77ce985758dea01a82411ef88d2462e5b720026d (plain)
1
2
3
4
5
6
7
8
9
10
11
C { dg-do compile }
      PARAMETER (Q=1)
      PARAMETER (P=10)
      INTEGER C(10),D(10),E(10),F(10)
C     TERMINAL NOT INTEGER
      DATA (C(I),I=1,P)    /10*10/ ! { dg-error "End expression in DO loop" "" }
C     START NOT INTEGER
      DATA (D(I),I=Q,10)   /10*10/ ! { dg-error "Start expression in DO loop" "" }
C     INCREMENT NOT INTEGER
      DATA (E(I),I=1,10,Q) /10*10/ ! { dg-error "Step expression in DO loop" "" }
      END