Mercurial > projects > dstress
annotate run/InExpression_11.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 |
rev | line source |
---|---|
180 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.InExpression_11; | |
6 | |
7 class MyClass{ | |
8 int i; | |
9 char c; | |
10 } | |
11 | |
12 int main(){ | |
13 MyClass value = new MyClass(); | |
14 char[] key = "eins"; | |
15 MyClass[char[]] array; | |
16 | |
17 array[key]=value; | |
18 MyClass* ptr = "zwei" in array; | |
19 | |
570 | 20 assert(ptr is null); |
180 | 21 |
22 return 0; | |
23 } |