summary refs log blame commit diff stats
path: root/tests/compile/tsizeof.nim
blob: f7b70dd4d048b11e191d4a372ffe07b46a4695cc (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))