Mercurial > projects > dstress
annotate run/foreach_16.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 |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
5 module dstress.run.foreach_16; |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
6 |
4 | 7 int main(){ |
1560 | 8 string x = x"F0 9D 83 93"; // utf-8 for U+1D0D3 |
4 | 9 |
10 int count=0; | |
390 | 11 dchar tmp; |
1560 | 12 foreach(dchar value ; x){ |
4 | 13 tmp=value; |
14 count++; | |
15 } | |
16 assert(count==1); | |
17 assert(tmp==0x01D0D3); | |
18 | |
19 return 0; | |
20 } |