Mercurial > projects > dstress
annotate run/opPreDec_07.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 | |
452 | 9 module dstress.run.opPreDec_07; |
451 | 10 |
452 | 11 void dummy(...){ |
12 } | |
451 | 13 |
14 int main() { | |
452 | 15 long x = 9; |
16 dummy(x); | |
17 int y=--x; | |
18 assert(y==8); | |
19 assert(x==8); | |
451 | 20 return 0; |
21 } | |
22 |