aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol')
-rw-r--r--test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol b/test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol
new file mode 100644
index 00000000..91ba9045
--- /dev/null
+++ b/test/libsolidity/syntaxTests/arrayLength/cyclic_constant.sol
@@ -0,0 +1,8 @@
+contract C {
+ uint constant LEN = LEN;
+ function f() {
+ uint[LEN] a;
+ }
+}
+// ----
+// TypeError: (37-40): Cyclic constant definition (or maximum recursion depth exhausted).