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 warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.fortran-torture
/
execute
/
strcommon_1.f90
blob
a3459f464c7a44eb7f75b10a763c30060bfc4c47
1
! PR14081 character variables in common blocks.
2
3
subroutine
test1
4
implicit none
5
common
/
block
/
c
6
character
(
len
=
12
) ::
c
7
8
if
(
c
.
ne
.
"Hello World"
)
STOP
1
9
end subroutine
10
11
subroutine
test2
12
implicit none
13
common
/
block
/
a
14
character
(
len
=
6
),
dimension
(
2
) ::
a
15
16
if
((
a
(
1
) .
ne
.
"Hello"
) .
or
. (
a
(
2
) .
ne
.
"World"
))
STOP
2
17
end subroutine
18
19
program
strcommon_1
20
implicit none
21
common
/
block
/
s
,
t
22
character
(
len
=
6
) ::
s
,
t
23
s
=
"Hello "
24
t
=
"World "
25
call
test1
26
call
test2
27
end program
28