Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/data_value_1.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 (2020-02-13) |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! Test the fix for PR40402, in which it was not detected that X ! is not a constant and so the DATA statement did not have ! a constant value expression. ! ! Modified dg-error for PR41807 ! ! Contributed by Philippe Marguinaud <philippe.marguinaud@meteo.fr> ! TYPE POINT REAL :: X ENDTYPE TYPE(POINT) :: P DATA P / POINT(1.+X) / ! { dg-error "non-constant initialization" } print *, p END