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
coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
minmaxloc_6.f90
blob
c61fab47edf0a2b583f91703d25dda4744f58d0b
1
! { dg-do run }
2
! PR35994 [4.3/4.4 regression] MAXLOC and MINLOC off by one with mask
3
REAL
DDA
(
5
:
104
)
4
dda
= (/(
J1
,
J1
=
1
,
100
)/)
5
6
IDS
=
MAXLOC
(
DDA
,
1
)
7
if
(
ids
.
ne
.100
)
call
abort
!expect 100
8
IDS
=
MAXLOC
(
DDA
,
1
, (/(
J1
,
J1
=
1
,
100
)/) >
50
)
9
if
(
ids
.
ne
.100
)
call
abort
!expect 100
10
11
END