Mercurial > projects > dstress
annotate run/opPreInc_04.d @ 452:8c1ae5dd51b0
fixed test cases(names)
author | thomask |
---|---|
date | Tue, 19 Apr 2005 11:40:22 +0000 |
parents | b35781291678 |
children | b8c0195059d9 |
rev | line source |
---|---|
451 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com> | |
6 // @date@ 2005-04-18 | |
7 // @uri@ news:d402bj$nc0$6@digitaldaemon.com | |
8 | |
9 module dstress.run.opPreInc_04; | |
10 | |
452 | 11 void dummy(...){ |
12 } | |
451 | 13 |
14 int main() { | |
15 ushort x = 9; | |
452 | 16 dummy(x); |
17 int y=++x; | |
18 assert(y==10); | |
451 | 19 assert(x==10); |
20 return 0; | |
21 } | |
22 |