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] - Blame information for rev 801

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR 31821
3
program main
4
  character (len=4), pointer:: s1
5
  character (len=20), pointer :: p1
6
  character (len=4) :: c
7
  s1 = 'abcd'
8
  p1 => s1(2:3) ! { dg-error "Unequal character lengths \\(20/2\\)" }
9
  p1 => c(1:) ! { dg-error "Unequal character lengths \\(20/4\\)" }
10
  p1 => c(:4) ! { dg-error "Unequal character lengths \\(20/4\\)" }
11
end

powered by: WebSVN 2.1.0

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