mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
remove ArrayDummySize with unchecked arrays (#5818)
This commit is contained in:
committed by
Andreas Rumpf
parent
b2aae477d1
commit
22684370b0
5
tests/array/tunchecked.nim
Normal file
5
tests/array/tunchecked.nim
Normal file
@@ -0,0 +1,5 @@
|
||||
{.boundchecks: on.}
|
||||
type Unchecked {.unchecked.} = array[0, char]
|
||||
|
||||
var x = cast[ptr Unchecked](alloc(100))
|
||||
x[5] = 'x'
|
||||
Reference in New Issue
Block a user