struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / digit_separators.c
blob1800404df80f03869e51fb449a16b7a3c733aa37
1 /**
2 ISO C23 digit separators.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c23
9 #endif
11 void
12 testDigitSeparators(void)
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