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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [char_associated_1.f90] - Rev 694

Compare with Previous | Blame | View Log

! Check that associated works correctly for character arrays.
! { dg-do run }
program main
  character (len = 5), dimension (:), pointer :: ptr
  character (len = 5), dimension (2), target :: a = (/ 'abcde', 'fghij' /)
  ptr => a
  if (.not. associated (ptr, a)) call abort
end program main

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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