summary refs log blame commit diff stats
path: root/tests/misc/tsizeof.nim
blob: 4afd48472a736e72d696fc255017fda7e6b05e4c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                
# Test the sizeof proc

type
  TMyRecord {.final.} = object
    x, y: int
    b: bool
    r: float
    s: string

write(stdout, sizeof(TMyRecord))