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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-fbounds-check" }
3
 
4
! PR fortran/35846
5
! This used to ICE because the charlength of the trim-expression was
6
! NULL.
7
 
8
! Contributed by Tobias Burnus 
9
 
10
implicit none
11
character(len=2) :: c(3)
12
 
13
c = 'a'
14
c = (/ (/ trim(c(1)), 'a' /)//'c', 'cd' /)
15
 
16
print *, c
17
 
18
if (c(1) /= 'ac' .or. c(2) /= 'ac' .or. c(3) /= 'cd') then
19
  call abort ()
20
end if
21
 
22
end

powered by: WebSVN 2.1.0

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