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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-O0" }
3
! PR20899 - Common block variables cannot be equivalenced in a pure procedure.
4
! Contributed by Joost VandeVondele 
5
common /z/ i
6
contains
7
pure integer function test(j)
8
  integer, intent(in) :: j
9
  common /z/ i
10
  integer :: k
11
  equivalence(i,k) ! { dg-error "EQUIVALENCE object in the pure" }
12
  k=1 ! { dg-error "variable definition context" }
13
  test=i*j
14
end function test
15
end
16
 

powered by: WebSVN 2.1.0

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