annotate nocompile/foreach_19.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
183
1c473946386f extended foreach tests
thomask
parents:
diff changeset
1 // $HeadURL$
1c473946386f extended foreach tests
thomask
parents:
diff changeset
2 // $Date$
1c473946386f extended foreach tests
thomask
parents:
diff changeset
3 // $Author$
1c473946386f extended foreach tests
thomask
parents:
diff changeset
4
1c473946386f extended foreach tests
thomask
parents:
diff changeset
5 // index has to be int / uint
1c473946386f extended foreach tests
thomask
parents:
diff changeset
6
360
e38919011244 dif. fixes 3
thomask
parents: 183
diff changeset
7 // __DSTRESS_ELINE__ 13
e38919011244 dif. fixes 3
thomask
parents: 183
diff changeset
8
183
1c473946386f extended foreach tests
thomask
parents:
diff changeset
9 module dstress.nocompile.foreach_19;
1c473946386f extended foreach tests
thomask
parents:
diff changeset
10
1c473946386f extended foreach tests
thomask
parents:
diff changeset
11 int main(){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 360
diff changeset
12 string x = "ab";
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 360
diff changeset
13 foreach(byte index, char c; x){
183
1c473946386f extended foreach tests
thomask
parents:
diff changeset
14 }
1c473946386f extended foreach tests
thomask
parents:
diff changeset
15 return 0;
1c473946386f extended foreach tests
thomask
parents:
diff changeset
16 }