repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
read_logical.f90
blob
7b7ba8c3a2524397c06a88e93ae8dcef11ae4cab
1
! { dg-do run }
2
! { dg-options "-std=legacy" }
3
!
4
! PR 26554 : Test logical read from string. Test case derived from PR.
5
! Submitted by Jerry DeLisle <jvdelisle@verizon.net>.
6
program
bug
7
implicit none
8
character
*
30
::
strg
9
logical
l
10
l
= .
true
.
11
strg
=
"false"
12
read
(
strg
,*)
l
13
if
(
l
)
call
abort
()
14
strg
=
"true"
15
read
(
strg
,*)
l
16
if
(.
not
.
l
)
call
abort
()
17
end
18