Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/intrinsic_char_1.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! Tests the fix for PR35932, in which the KIND argument of CHAR ! was not converted and this screwed up the scalarizer. ! ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com> ! program FA0005 CHARACTER(1) CDA1(10) character(10) CDA10 INTEGER :: IDA(10) = [(i, i = 97,106)] CDA1 = CHAR ( IDA, KIND("A" )) !failed if (transfer (CDA1, CDA10) /= "abcdefghij") call abort () CDA1 = CHAR ( IDA ) !worked if (transfer (CDA1, CDA10) /= "abcdefghij") call abort () END