annotate run/InExpression_12.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 32f7f8ce5e51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
180
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
1 // $HeadURL$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
2 // $Date$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
3 // $Author$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
4
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
5 module dstress.run.InExpression_12;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
6
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
7 struct MyStruct{
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
8 int i;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
9 char c;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
10 }
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
11
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
12 int main(){
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
13 MyStruct value;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
14 char[] key = "eins";
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
15 MyStruct[char[]] array;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
16
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
17 array[key]=value;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
18 MyStruct* ptr = "zwei" in array;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
19
570
32f7f8ce5e51 updated "===" -> "is" and "!==" to "!(...===...)"
thomask
parents: 180
diff changeset
20 assert(ptr is null);
180
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
21
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
22 return 0;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
23 }