Debian Codegraph @

flang/test/Evaluate/fold-dble.f90

raw
1 ! RUN: %python %S/test_folding.py %s %flang_fc1
2 ! Tests folding of DBLE()
3 module ft_data
4 integer nx, ny, nz
5 parameter (nx=64, ny=64, nz=64, maxdim=64)
6 double precision ntotal_f
7 parameter (ntotal_f = dble(nx)*ny*nz)
8 logical, parameter :: test_dble_1 = ntotal_f == real(nx*ny*nz, kind(0.0D0))
9 logical, parameter :: test_dble_2 = kind(dble(nx)) == kind(0.0D0)
10 end module ft_data