view gcc/testsuite/gfortran.dg/data_char_2.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
! { dg-options "-std=legacy" }
!
!  Test that getting a character from a
! string data works.

CHARACTER*10       INTSTR
CHARACTER          C1
DATA               INTSTR / '0123456789' /

C1 = INTSTR(1:1)
if(C1 .ne. '0')  call abort()

end