aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/signed_rational_modulus.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/signed_rational_modulus.sol')
-rw-r--r--test/libsolidity/syntaxTests/signed_rational_modulus.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/signed_rational_modulus.sol b/test/libsolidity/syntaxTests/signed_rational_modulus.sol
new file mode 100644
index 00000000..b37d33d0
--- /dev/null
+++ b/test/libsolidity/syntaxTests/signed_rational_modulus.sol
@@ -0,0 +1,8 @@
+contract test {
+ function f() public pure {
+ fixed a = 0.42578125 % -0.4271087646484375;
+ fixed b = .5 % a;
+ fixed c = a % b;
+ a; b; c;
+ }
+}