aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorChristian Parpart <christian@parpart.family>2018-08-08 20:46:17 +0800
committerChristian Parpart <christian@ethereum.org>2018-08-14 21:38:10 +0800
commit43bda534102c95a85daddc64fb466eb8c88e2325 (patch)
tree825f2366d2eb90ca0f6f154c45ed67e12a478dc4 /test/libsolidity
parent43db88b8363d73ee2f5ffa094ff506414261bd11 (diff)
downloaddexon-solidity-43bda534102c95a85daddc64fb466eb8c88e2325.tar.gz
dexon-solidity-43bda534102c95a85daddc64fb466eb8c88e2325.tar.zst
dexon-solidity-43bda534102c95a85daddc64fb466eb8c88e2325.zip
Fixes issue where computing storage size for a number would take too long.
Fixes #4673.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/syntaxTests/types/too_small_negative_numbers.sol4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/types/too_small_negative_numbers.sol b/test/libsolidity/syntaxTests/types/too_small_negative_numbers.sol
new file mode 100644
index 00000000..66bd9a8e
--- /dev/null
+++ b/test/libsolidity/syntaxTests/types/too_small_negative_numbers.sol
@@ -0,0 +1,4 @@
+contract C {
+ fixed8x80 a = -1e-100;
+}
+// ----