[Clang] Make OpenMP offloading consistently use the bound architecture (#125135)
[llvm-project.git] / flang / test / Evaluate / fold-dprod.f90
blob8b926b999e5535a46b69e8860d71e2bf272cec61
1 ! RUN: %python %S/test_folding.py %s %flang_fc1
2 ! Tests folding of DPROD()
3 module m
4 logical, parameter :: test_kind = kind(dprod(2., 3.)) == kind(0.d0)
5 logical, parameter :: test_ss = dprod(2., 3.) == 6.d0
6 logical, parameter :: test_sv = all(dprod(2., [3.,4.]) == [6.d0,8.d0])
7 logical, parameter :: test_vv = all(dprod([2.,3.], [4.,5.]) == [8.d0,15.0d0])
8 end