Mercurial > projects > dstress
annotate run/InExpression_11.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
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 } |