annotate gcc/testsuite/gfortran.dg/norm2_2.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-std=f2008" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PR fortran/33197
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! Check implementation of L2 norm (Euclidean vector norm)
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 print *, norm2([1, 2]) ! { dg-error "must be REAL" }
kono
parents:
diff changeset
11 print *, norm2([cmplx(1.0,2.0)]) ! { dg-error "must be REAL" }
kono
parents:
diff changeset
12 print *, norm2(1.0) ! { dg-error "must be an array" }
kono
parents:
diff changeset
13 print *, norm2([1.0, 2.0], dim=2) ! { dg-error "not a valid dimension index" }
kono
parents:
diff changeset
14 end