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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Checks the fix for PR33664, in which the apparent function reference
3
! n(1) caused a seg-fault.
4
!
5
! Contributed by Henrik Holst 
6
!
7
module test
8
contains
9
  subroutine func_1(u,n)
10
    integer :: n
11
    integer :: u(n(1))  ! { dg-error "must be PURE" }
12
  end subroutine
13
end module test
14
! { dg-final { cleanup-modules "test" } }
15
 

powered by: WebSVN 2.1.0

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