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
Fix compilation failure with C++98 compilers
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
intrinsic_size.f90
blob
284c649bd80eeb5b6953698ab141106008c3040e
1
! { dg-do compile }
2
!
3
! Argument checking; dim and kind have to be scalar
4
!
5
! PR fortran/33297
6
!
7
integer
array
(
5
),
i1
,
i2
8
print
*,
size
(
array
,(/
i1
,
i2
/))
! { dg-error "must be a scalar" }
9
print
*,
size
(
array
,
i1
,(/
i1
,
i2
/))
! { dg-error "must be a scalar" }
10
end