repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
digit_separators.c
blob
1800404df80f03869e51fb449a16b7a3c733aa37
1
/**
2
ISO C23 digit separators.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c23
9
#endif
10
11
void
12
testDigitSeparators
(
void
)
13
{
14
#ifdef __SDCC
15
ASSERT
(
1'120'377
==
1120377
);
16
ASSERT
(
0b0'00'11'00'01
==
0b000110001
);
17
ASSERT
(
0x01'ff'5a
==
0x01ff5a
);
18
ASSERT
(
012'3'4
==
01234
);
19
#endif
20
}
21