summary refs log tree commit diff stats
path: root/tests/array
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2017-08-28 21:44:35 +0800
committerAndreas Rumpf <rumpf_a@web.de>2017-08-28 15:44:35 +0200
commit22684370b0eb5938bc7a4172dc968e4c557a02ee (patch)
tree249ab747b22eeccb3be5ff7cfebcd4eec8ca7402 /tests/array
parentb2aae477d105287ee54da94f7254d5c0f579fe4f (diff)
downloadNim-22684370b0eb5938bc7a4172dc968e4c557a02ee.tar.gz
remove ArrayDummySize with unchecked arrays (#5818)
Diffstat (limited to 'tests/array')
-rw-r--r--tests/array/tunchecked.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/array/tunchecked.nim b/tests/array/tunchecked.nim
new file mode 100644
index 000000000..f5ac3642d
--- /dev/null
+++ b/tests/array/tunchecked.nim
@@ -0,0 +1,5 @@
+{.boundchecks: on.}
+type Unchecked {.unchecked.} = array[0, char]
+
+var x = cast[ptr Unchecked](alloc(100))
+x[5] = 'x'