summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/real_index_1.f90
blob: 16ceca827748891ea52761a58d1d6b4f089c7816 (plain)
1
2
3
4
5
6
7
! { dg-do run }
! PR 16907 : We didn't support REAL array indices as an extension
       integer I, A(10)
       A = 2
       I=A(1.0) ! { dg-warning "Extension" }
       if (i/=2) call abort ()
       end