summary refs log tree commit diff stats
path: root/tests/errmsgs/t21257.nim
blob: eecdb1dfe6e238a1df59d308249e63046e7dc15c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  action: compile
  cmd: "nim check $file" 
"""

type AC_WINCTRL_Fields* = distinct uint8

type AC_STATUSA_WSTATE0* {.pure.} = enum
  ABOVE = 0x0,
  INSIDE = 0x1,
  BELOW = 0x2,

type AC_WINCTRL_WINTSEL0* {.pure.} = enum
  ABOVE = 0x0,
  INSIDE = 0x1,
  BELOW = 0x2,
  OUTSIDE = 0x3,

proc write*(WINTSEL0: AC_WINCTRL_WINTSEL0 = ABOVE) =
  discard