aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol')
-rw-r--r--test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol b/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol
new file mode 100644
index 00000000..38a80867
--- /dev/null
+++ b/test/libsolidity/syntaxTests/arrayLength/invalid_expression_5.sol
@@ -0,0 +1,5 @@
+contract C {
+ uint[3/0] ids;
+}
+// ----
+// TypeError: (22-25): Operator / not compatible with types int_const 3 and int_const 0