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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_assign_1.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! { 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.