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 801
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