Mercurial > projects > dstress
view run/u/unicode_08_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 36bedfa079e6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com> // @date@ 2005-05-17 // @uri@ news:d6bm67$cfr$1@digitaldaemon.com // @uri@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F13 module dstress.run.u.unicode_08_A; int main(){ static ubyte[] master = [ 0xE3u, 0x83u, 0xAFu, 0xE3u, 0x83u, 0xADu, 0xE3u, 0x82u, 0xB9u, 0xEFu, 0xBDu, 0x97u ]; string x = "ワロスw"; assert(x.length==master.length); for(int i=0; i<master.length; i++){ assert(x[i]==master[i]); } return 0; }