aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol')
-rw-r--r--test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol b/test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol
new file mode 100644
index 00000000..8264a8b2
--- /dev/null
+++ b/test/libsolidity/syntaxTests/indexing/fixedbytes_out_of_bounds_index.sol
@@ -0,0 +1,8 @@
+contract C {
+ function f() public {
+ bytes32 b;
+ b[64];
+ }
+}
+// ----
+// TypeError: (56-61): Out of bounds array access.