summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/claus.f
blob: 391d1cb9a853ee7b3f7b30affb58d18126ff5710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
c { dg-do run }
        PROGRAM TEST
        REAL AB(3)
        do i=1,3
         AB(i)=i
        enddo
        k=1
        n=2
        ind=k-n+2
        if (ind /= 1) call abort
        if (ab(ind) /= 1) call abort
        if (k-n+2 /= 1) call abort
        if (ab(k-n+2) /= 1) call abort
        END