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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Tests the fix for PR35932, in which the KIND argument of CHAR
3
! was not converted and this screwed up the scalarizer.
4
!
5
! Contributed by Dick Hendrickson 
6
!
7
program FA0005
8
 
9
  CHARACTER(1) CDA1(10)
10
  character(10) CDA10
11
  INTEGER :: IDA(10) = [(i, i = 97,106)]
12
 
13
  CDA1 = CHAR (  IDA, KIND("A" ))     !failed
14
  if (transfer (CDA1, CDA10) /= "abcdefghij") call abort ()
15
  CDA1 = CHAR (  IDA  )               !worked
16
  if (transfer (CDA1, CDA10) /= "abcdefghij") call abort ()
17
END

powered by: WebSVN 2.1.0

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