mips.c (mips16_copy_fpr_return_value): New function, split out from...
[official-gcc.git] / gcc / testsuite / gfortran.dg / scalar_mask_1.f90
blobe2e5d6c421db3c25b63331da684a47560565254a
1 ! { dg-do run }
2 program main
3 implicit none
4 real, dimension(2) :: a
5 a(1) = 2.0
6 a(2) = 3.0
7 if (product (a, .false.) /= 1.0) call abort
8 if (product (a, .true.) /= 6.0) call abort
9 if (sum (a, .false.) /= 0.0) call abort
10 if (sum (a, .true.) /= 5.0) call abort
11 if (maxval (a, .true.) /= 3.0) call abort
12 if (maxval (a, .false.) > -1e38) call abort
13 if (maxloc (a, 1, .true.) /= 2) call abort
14 if (maxloc (a, 1, .false.) /= 0) call abort ! Change to F2003 requirement.
15 end program main