annotate nocompile/foreach_18.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents e38919011244
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
1 // $HeadURL$
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
2 // $Date$
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
3 // $Author$
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
4
183
1c473946386f extended foreach tests
thomask
parents: 152
diff changeset
5 // only "" and "inout" are allowed as modifiers
152
5b69c210daee added foreach(in/out ...) 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
152
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
9 module dstress.nocompile.foreach_18;
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
10
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
11 int main(){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 360
diff changeset
12 string x = "av";
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 360
diff changeset
13 foreach(out char c; x){
152
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
14 }
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
15 return 0;
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
16 }