diff options
Diffstat (limited to 'javatests/com/google/turbine/lower/testdata/const_operation_order.test')
-rw-r--r-- | javatests/com/google/turbine/lower/testdata/const_operation_order.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/javatests/com/google/turbine/lower/testdata/const_operation_order.test b/javatests/com/google/turbine/lower/testdata/const_operation_order.test new file mode 100644 index 0000000..a088823 --- /dev/null +++ b/javatests/com/google/turbine/lower/testdata/const_operation_order.test @@ -0,0 +1,13 @@ +=== test/A.java === +package test; + +public class A { + public static final double D1 = 1.0 / (2 / 3); + public static final double D2 = 1.0 / 2 / 3; + public static final double M1 = 1.0 + (2 + 3); + public static final double M2 = 1.0 + 2 + 3; + public static final double A1 = 1.0 + (2 + 3); + public static final double A2 = 1.0 + 2 + 3; + public static final double S1 = 1.0 - (2 - 3); + public static final double S2 = 1.0 - 2 - 3; +} |