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_6.f90] - Rev 708

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

! { dg-do compile }
! PR 31821
program main
  character (len=4), pointer:: s1
  character (len=20), pointer :: p1
  character (len=4) :: c
  s1 = 'abcd'
  p1 => s1(2:3) ! { dg-error "Unequal character lengths \\(20/2\\)" }
  p1 => c(1:) ! { dg-error "Unequal character lengths \\(20/4\\)" }
  p1 => c(:4) ! { dg-error "Unequal character lengths \\(20/4\\)" }
end

Go to most recent revision | 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.