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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [char_pointer_assign_2.f90] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the fix for PRs20895 and 25030, where pointer assignments
3
! of different length characters were accepted.
4
  character(4), target :: ch1(2)
5
  character(4), pointer :: ch2(:)
6
  character(5), pointer :: ch3(:)
7
 
8
  ch2 => ch1  ! Check correct is OK
9
  ch3 => ch1  ! { dg-error "Different character lengths" }
10
 
11
end

powered by: WebSVN 2.1.0

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