aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol')
-rw-r--r--test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol b/test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol
new file mode 100644
index 00000000..8cc3b6f2
--- /dev/null
+++ b/test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol
@@ -0,0 +1,5 @@
+contract C {
+ uint constant a = 1 / ((1+3)-4);
+}
+// ----
+// TypeError: (35-48): Operator / not compatible with types int_const 1 and int_const 0