Mercurial > projects > dstress
view run/w/wchar_10_A.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | f7434744e991 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.w.wchar_10_A; int main(){ wchar[] s = "-\U00012345_"; assert(s.length == 4); assert(s[0] == 0x002D); if(s[1] == 0xD808){ assert(s[2] == 0xDF45); }else if(s[1] == 0x08D8){ assert(s[2] == 0x45DF); }else{ assert(0); } assert(s[3] == 0x005F); return 0; }