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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.fortran-torture
/
execute
/
common_2.f90
blob
9a3bee8ff35b0c50a19224d1010458aefd6d63db
1
! PR fortran/16336 -- the two common blocks used to clash
2
MODULE
bar
3
INTEGER
::
I
4
COMMON
/
X
/
I
5
contains
6
subroutine
set_i
()
7
i
=
5
8
end subroutine
set_i
9
END MODULE
bar
10
11
USE
bar
12
INTEGER
::
J
13
COMMON
/
X
/
J
14
j
=
1
15
i
=
2
16
if
(
j
.
ne
.
i
)
STOP
1
17
if
(
j
.
ne
.2
)
STOP
2
18
call
set_i
()
19
if
(
j
.
ne
.5
)
STOP
3
20
END