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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
data_array_2.f90
blob
20777a2a796b80e0b735f47bca869adb4fdb5ec3
1
! { dg-do compile }
2
! PR32928 DATA statement with array element as initializer is rejected
3
integer
,
parameter
,
dimension
(
4
) ::
myint
= [
4
,
3
,
2
,
1
]
4
integer
::
a
(
5
)
5
data
a
(
1
:
2
) /
myint
(
a
(
1
)),
myint
(
2
) /
! { dg-error "Invalid initializer" }
6
end