Nim/tests/tsizeof.nim
2008-06-22 16:14:11 +02:00

13 lines
163 B
Nim
Executable file

# Test the sizeof proc
import
io
type
TMyRecord = record
x, y: int
b: bool
r: float
s: string
write(stdout, sizeof(TMyRecord))