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.dg
/
array_3.f90
blob
26879ffaa1466c1f3a9d6de572726d38f1e0b3d1
1
! { dg-do compile }
2
! PR31610 ICE with transfer, merge in gfc_conv_expr_descriptor
3
integer
::
i
(
1
) =
1
4
integer
::
foo
(
3
)
5
integer
::
n
(
1
)
6
foo
(
1
) =
17
7
foo
(
2
) =
55
8
foo
(
3
) =
314
9
print
*,
i
,
foo
10
write
(*,*)
foo
([
1
]),
foo
([
1
]+
i
), [
1
]+
1
11
n
=
foo
([
1
]+
i
)
12
print
*,
n
,
shape
(
foo
([
1
]+
i
)),
shape
(
foo
(
i
+[
1
]))
13
end