1 ! RUN: %python %S/test_folding.py %s %flang_fc1
2 ! Tests folding of SCALE()
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