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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR fortran/31803
3
! Assigning a substring to a pointer
4
 
5
program test
6
  implicit none
7
  character (len = 7), target :: textt
8
  character (len = 7), pointer :: textp
9
  character (len = 5), pointer :: textp2
10
  textp => textt
11
  textp2 => textt(1:5)
12
  if(len(textp)  /= 7) call abort()
13
  if(len(textp2) /= 5) call abort()
14
  textp  = 'aaaaaaa'
15
  textp2 = 'bbbbbbb'
16
  if(textp  /= 'bbbbbaa') call abort()
17
  if(textp2 /= 'bbbbb') call abort()
18
end program test

powered by: WebSVN 2.1.0

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