annotate run/comment_13.d @ 27:044e39a3bac6

added comment tests
author thomask
date Sat, 09 Oct 2004 14:03:40 +0000
parents
children f87ba6507260
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
1 int main(){
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
2 char[] string="
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
3 //
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
4 ";
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
5 assert(string.length==4);
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
6 assert(string[0]=='\n');
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
7 assert(string[1]=='/');
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
8 assert(string[2]=='/');
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
9 assert(string[3]=='\n');
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
10 return 0;
044e39a3bac6 added comment tests
thomask
parents:
diff changeset
11 }