[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Evaluate / fold-dble.f90
blob523fa8c520672ff59c44e07e8177f9c54c61a1c8
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