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
* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
array_constructor_1.f90
blob
0ba8ba0d0a44be18adfa1cce5c085916e56f2451
1
! { dg-do run }
2
! Check that [...] style array constructors work
3
program
bracket_array_constructor
4
implicit none
5
integer
::
a
(
4
),
i
6
7
a
= [
1
,
2
,
3
,
4
]
8
do
i
=
1
,
size
(
a
)
9
if
(
a
(
i
) /=
i
)
call
abort
()
10
end do
11
12
a
= [ (/
1
,
2
,
3
,
4
/) ]
13
do
i
=
1
,
size
(
a
)
14
if
(
a
(
i
) /=
i
)
call
abort
()
15
end do
16
17
end program
bracket_array_constructor