Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/widechar_9.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/37076 ! ! Before the result of concatenations was always a kind=1 string ! program test3 integer,parameter :: u = 4 character(1,u),parameter :: nen=char(int(z'5e74'),u) !year character(25,u) :: string string = u_"2008"//nen print *, u_"2008"//nen ! Compiles OK print *, u_"2008"//nen//u_"8" ! Rejects this. end program test3