[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Evaluate / fold-scale.f90
bloba5c5f081668b163a0d1be8252ee3e9239789e3d8
1 ! RUN: %python %S/test_folding.py %s %flang_fc1
2 ! Tests folding of SCALE()
3 module m
4 logical, parameter :: test_1 = scale(1.0, 1) == 2.0
5 logical, parameter :: test_2 = scale(0.0, 1) == 0.0
6 logical, parameter :: test_3 = sign(1.0, scale(-0.0, 1)) == -1.0
7 logical, parameter :: test_4 = sign(1.0, scale(0.0, 0)) == 1.0
8 logical, parameter :: test_5 = scale(1.0, -1) == 0.5
9 logical, parameter :: test_6 = scale(2.0, -1) == 1.0
10 end module