diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-11-06 06:52:45 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-11-06 17:52:10 +0800 |
commit | e036133d1be1ac87af29ce145052884c2c025ffa (patch) | |
tree | 71a950f55cec1f9355313dcba66c1383cadee948 /test/libsolidity | |
parent | 88aee34c22d86a004848ae8bdc818b5168dd94cb (diff) | |
download | dexon-solidity-e036133d1be1ac87af29ce145052884c2c025ffa.tar.gz dexon-solidity-e036133d1be1ac87af29ce145052884c2c025ffa.tar.zst dexon-solidity-e036133d1be1ac87af29ce145052884c2c025ffa.zip |
Fix negative denominator in ``boost::rational`` during exponentiation.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/syntaxTests/types/rational_negative_numerator_negative_exp.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/types/rational_negative_numerator_negative_exp.sol b/test/libsolidity/syntaxTests/types/rational_negative_numerator_negative_exp.sol new file mode 100644 index 00000000..b694992c --- /dev/null +++ b/test/libsolidity/syntaxTests/types/rational_negative_numerator_negative_exp.sol @@ -0,0 +1,5 @@ +contract C { + function f() public pure returns (int) { + return (-1 / 2) ** -1; + } +} |