annotate nocompile/foreach_17.d @ 183:1c473946386f

extended foreach tests
author thomask
date Thu, 09 Dec 2004 06:08:48 +0000
parents 5b69c210daee
children e38919011244
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
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
7 module dstress.nocompile.foreach_17;
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
8
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
9 int main(){
183
1c473946386f extended foreach tests
thomask
parents: 152
diff changeset
10 char[] string;
152
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
11 foreach(in char c; string){
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
12
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
13 }
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
14 return 0;
5b69c210daee added foreach(in/out ...) tests
thomask
parents:
diff changeset
15 }