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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [simpleif_2.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Test fix for regression caused by
3
! 2006-06-23  Steven G. Kargl  
4
!    PR fortran/27981
5
!    * match.c (gfc_match_if):  Handle errors in assignment in simple if.
6
!
7
module read
8
  integer i, j, k
9
  contains
10
    subroutine a
11
      integer, parameter :: n = 2
12
      if (i .eq. 0) read(j,*) k
13
      if (i .eq. 0) n = j    ! { dg-error "Named constant 'n' in variable definition context" }
14
    end subroutine a
15
end module read

powered by: WebSVN 2.1.0

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