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
re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
array_constructor_type_13.f90
blob
a6a64c0e825ccb4bb2a916977184e9cbadc07d00
1
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
!
4
! PR fortran/27997
5
!
6
! Array constructor with typespec
7
! should be rejected for Fortran 95.
8
!
9
real
::
a
(
3
)
10
integer
::
j
(
3
)
11
a
= (/
integer
::
1.4
,
2.2
,
3.33
/)
! { dg-error "Fortran 2003" }
12
j
= (/
1.4
,
2.2
,
3.33
/)
13
if
(
any
(
a
/=
j
))
STOP
1
14
end