mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
15 lines
249 B
Fortran
15 lines
249 B
Fortran
! { 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') STOP 1
|
|
|
|
end
|