Mercurial > projects > dstress
comparison run/InExpression_01.d @ 180:da000f026b76
1) added InExpression tests
2) added passed/failed explanations to the summary page
author | thomask |
---|---|
date | Tue, 07 Dec 2004 12:04:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
179:55a2c755d699 | 180:da000f026b76 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.InExpression_01; | |
6 | |
7 int main(){ | |
8 int value=1; | |
9 char[] key = "eins"; | |
10 int[char[]] array; | |
11 | |
12 array[key]=value; | |
13 int* ptr = key in array; | |
14 | |
15 assert( value == *ptr); | |
16 | |
17 return 0; | |
18 } |