diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-07 20:31:59 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-07 20:31:59 +0100 |
commit | 12e247acc673a674103876494368535f62bcb4a3 (patch) | |
tree | 00dbaa4cdb8a75d92ae5dccd5fdc4eeeb23fc004 /tests/vm/tarrayboundeval.nim | |
parent | 152fcc8ec4fb88e97222fe6b3bfb9852ed487b37 (diff) | |
parent | 3197ec8e7289fc0861af05f8ecc357b54099f702 (diff) | |
download | Nim-12e247acc673a674103876494368535f62bcb4a3.tar.gz |
Merge branch 'devel' of github.com:Araq/Nimrod into devel
Diffstat (limited to 'tests/vm/tarrayboundeval.nim')
-rw-r--r-- | tests/vm/tarrayboundeval.nim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/vm/tarrayboundeval.nim b/tests/vm/tarrayboundeval.nim new file mode 100644 index 000000000..9b33a2415 --- /dev/null +++ b/tests/vm/tarrayboundeval.nim @@ -0,0 +1,23 @@ +discard """ + output: '''7 +8 8''' +""" + +#bug 1063 + +const + KeyMax = 227 + myconst = int((KeyMax + 31) / 32) + +type + FU = array[int((KeyMax + 31) / 32), cuint] + +echo FU.high + +type + PKeyboard* = ptr object + TKeyboardState* = object + display*: pointer + internal: array[int((KeyMax + 31)/32), cuint] + +echo myconst, " ", int((KeyMax + 31) / 32) |