summaryrefslogtreecommitdiff
path: root/support/regression/tests/octal.c
blob: 077975a098080d1753807957e030fb227b5921d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** Test new octal and escape syntax (C2y) */

#include <testfwk.h>

#ifdef __SDCC
_Pragma("std_c2y")
#endif

void testOctal(void)
{
#ifdef __SDCC
  ASSERT(0o377 == 255);
  ASSERT(0o10000 == 4096);
  ASSERT('\o{377}' == '\377');
  ASSERT('\x{ff}' == '\xff');
  ASSERT(u'\u2122' == u'\u{2122}');
#endif
}