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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_assign_1.f90] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
! { dg-do compile }
2
! Tests fix for PR20838 - would ICE with vector subscript in
3
! pointer assignment.
4
!
5
! Contributed by Paul Thomas  
6
!
7
  integer, parameter, dimension(3) :: i = (/2,1,3/)
8
  integer, dimension(3), target   :: tar
9
  integer, dimension(2, 3), target   :: tar2
10
  integer, dimension(:), pointer  :: ptr
11
  ptr => tar
12
  ptr => tar(3:1:-1)
13
  ptr => tar(i)     ! { dg-error "with vector subscript" }
14
  ptr => tar2(1, :)
15
  ptr => tar2(2, i) ! { dg-error "with vector subscript" }
16
  end
17
 

powered by: WebSVN 2.1.0

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