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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [realloc_on_assign_5.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Test the fix for PR47523 in which concatenations did not work
3
! correctly with assignments to deferred character length scalars.
4
!
5
! Contributed by Thomas Koenig  
6
!
7
program main
8
  implicit none
9
  character(:), allocatable :: a, b
10
  a = 'a'
11
  if (a .ne. 'a') call abort
12
  a = a // 'x'
13
  if (a .ne. 'ax') call abort
14
  if (len (a) .ne. 2) call abort
15
  a = (a(2:2))
16
  if (a .ne. 'x') call abort
17
  if (len (a) .ne. 1) call abort
18
end program main

powered by: WebSVN 2.1.0

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