OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [data_value_1.f90] - Rev 694

Compare with Previous | Blame | View Log

! { 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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.