kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_4_5_11_source_utf8_wide_string.c (271B)


      1 #include <stddef.h>
      2 
      3 int test_main(void) {
      4   const wchar_t* w = L"é";
      5   const unsigned int* u = U"é";
      6   return sizeof(L"é") == 8 && w[0] == 0x00e9 && w[1] == 0 &&
      7                  sizeof(U"é") == 8 && u[0] == 0x00e9 && u[1] == 0
      8              ? 42
      9              : 0;
     10 }