Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/array_constructor_39.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! ! PR fortran/44354 ! array constructors were giving unexpected results when the ac-implied-do ! variable was used in one of the ac-implied-do bounds. ! ! Original testcase by Vittorio Zecca <zeccav@gmail.com> ! I=5 if (any((/(i,i=1,I)/) /= (/1,2,3,4,5/))) call abort ! { dg-warning "final expression references control variable" } if (I /= 5) call abort end