summaryrefslogtreecommitdiff
path: root/test/regress/regress0/precedence/plus-mult.cvc
blob: ecd34f58364fb894b6f0780d94ce4051e52e56cf (plain)
1
2
3
4
5
6
7
8
% EXPECT: VALID
% Simple test for right precedence of plus/minus and mult/divide

a, b, c, d, e: INT;

QUERY (a + 2 * b / 3 - c / 4 * 5 + d / 6 - e ) =
  ((((a + ((2 * b) / 3)) - ((c / 4) * 5)) + (d / 6)) - e);
% EXIT: 20
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback