Mercurial > projects > dstress
annotate nocompile/InExpression_14.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
180 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // only associative arrays support the InExpression | |
6 | |
374 | 7 // __DSTRESS_ELINE__ 18 |
8 | |
180 | 9 module dstress.nocompile.InExpression_14; |
10 | |
11 int main(){ | |
12 int value = 1; | |
13 size_t key = 1; | |
14 int[] array; | |
15 array.length = 20; | |
16 | |
17 array[key]=value; | |
18 int* ptr = key in array; | |
19 | |
20 return 0; | |
21 } |