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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_char_1.f90] - Rev 317

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

! { 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 

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

powered by: WebSVN 2.1.0

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