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_1.f90] - Blame information for rev 708

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! This test is run with result-checking and -fbounds-check as
3
! nested_array_constructor_2.f90
4
 
5
! PR fortran/35846
6
! This used to ICE because the charlength of the trim-expression was
7
! NULL.
8
 
9
! Contributed by Tobias Burnus 
10
 
11
implicit none
12
character(len=2) :: c(3)
13
 
14
c = 'a'
15
c = (/ (/ trim(c(1)), 'a' /)//'c', 'cd' /)
16
 
17
print *, c
18
 
19
end

powered by: WebSVN 2.1.0

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