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/] [char_associated_1.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! Check that associated works correctly for character arrays.
2
! { dg-do run }
3
program main
4
  character (len = 5), dimension (:), pointer :: ptr
5
  character (len = 5), dimension (2), target :: a = (/ 'abcde', 'fghij' /)
6
  ptr => a
7
  if (.not. associated (ptr, a)) call abort
8
end program main

powered by: WebSVN 2.1.0

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