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
RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
dot_product_1.f03
blob
954f24d09e884cc75f62ad50454fc84e05b4c978
1
! { dg-do run }
2
! Transformational intrinsic DOT_PRODUCT as initialization expression.
3
4
INTEGER, PARAMETER :: n = 10
5
INTEGER, PARAMETER :: a(n) = 1
6
INTEGER, PARAMETER :: p = DOT_PRODUCT(a, a)
7
INTEGER, PARAMETER :: e = DOT_PRODUCT(SHAPE(1), SHAPE(1))
8
9
IF (p /= n) STOP 1
10
IF (e /= 0) STOP 2
11
END