aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-08 18:25:30 +0800
committerGitHub <noreply@github.com>2018-11-08 18:25:30 +0800
commitcc2de07bc6be6125fb5505d17f8c50fac8d15dc6 (patch)
tree1e9219c4fd008fd44b529db3cefd7468b6c6db4d /test/libsolidity
parentbed0368ffac4f9e34ff14e115619ed2cd994e2f7 (diff)
parente036133d1be1ac87af29ce145052884c2c025ffa (diff)
downloaddexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar.gz
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar.bz2
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar.lz
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar.xz
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.tar.zst
dexon-solidity-cc2de07bc6be6125fb5505d17f8c50fac8d15dc6.zip
Merge pull request #5348 from ethereum/boostRationalNegativeDenominatorFix
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.sol5
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;
+ }
+}