aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/backend/numbers.good
blob: 3562ab0b5e33ba5aeedaa2cd12d294c809c80751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


// Decimal numbers
int dec1 = 0;
int dec2 = 1;
int dec3 = 999;
int dec4 = 08;
int dec5 = 000;

// Hexadecimal numbers
int hex1 = 0x0;
int hex2 = 0x1;
int hex3 = 0xFFF;
int hex4 = 0x08;
int hex5 = 0x000;

// Numbers with separators
int separated1 = 1_000;
int separated2 = 000_00123;