summary refs log tree commit diff stats
path: root/tests/vm/tarrayboundeval.nim
blob: 9b33a2415427f2f94fd4f2d7a2b80e22ba5413e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)