scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0266-wchar.c (208B)


      1 #include <wchar.h>
      2 
      3 int
      4 main()
      5 {
      6 	wchar_t buf[30] = L"abc";
      7 
      8 	if (buf[0] != L'a')
      9 		return 1;
     10 	if (buf[1] != L'b')
     11 		return 2;
     12 	if (buf[2] != L'c')
     13 		return 3;
     14 	if (buf[3] != L'\0')
     15 		return 4;
     16 
     17 	return 0;
     18 }