aboutsummaryrefslogtreecommitdiffstats
path: root/tests/constants/numbers.bdl
blob: 136b5fbd5f05c77f2d6c2a72b62fcb7dc214a217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
; Signed integers.
(print 1:s8)
(print 52:s8)
(print -1:s8)
(print 0:s8)
(print 1:s16)
(print 52:s16)
(print -1:s16)
(print 0:s16)
(print 1:s32)
(print 52:s32)
(print -1:s32)
(print 0:s32)
(print 1:s64)
(print 52:s64)
(print -1:s64)
(print 0:s64)

; Unsigned integers.
(print 1:u8)
(print 52:u8)
(print -1:u8)
(print 0:u8)
(print 1:u16)
(print 52:u16)
(print -1:u16)
(print 0:u16)
(print 1:u32)
(print 52:u32)
(print -1:u32)
(print 0:u32)
(print 1:u64)
(print 52:u64)
(print -1:u64)
(print 0:u64)

; Type inference.
(print 1)
(print 52)
(print -1)
(print 0)