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
Fix compilation failure with C++98 compilers
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr65903.f90
blob
152f1c231cbafb14b2032bd9cc2b5536a650b437
1
! { dg-do run }
2
! { dg-options "-std=gnu" }
3
!
4
character
(
20
) ::
astring
5
6
100
format
(
"& notblank !"
)
7
200
format
(
"& !"
)
8
300
format
(
"&!"
)
9
10
write
(
astring
,
100
)
11
if
(
astring
.
ne
.
"& notblank !"
)
STOP
1
12
!print *, astring
13
write
(
astring
,
200
)
14
if
(
astring
.
ne
.
"& !"
)
STOP
2
15
!print *, astring
16
write
(
astring
,
300
)
17
if
(
astring
.
ne
.
"&!"
)
STOP
3
18
!print *, astring
19
20
end