Mercurial > projects > dstress
annotate run/opMulAssign_07.d @ 453:e55b5641ca2c
*= /= -= +=
author | thomask |
---|---|
date | Tue, 19 Apr 2005 12:10:31 +0000 |
parents | |
children | b8c0195059d9 |
rev | line source |
---|---|
453 | 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.opMulAssign_07; | |
10 | |
11 void dummy(...){ | |
12 } | |
13 | |
14 int main() { | |
15 long x = 3; | |
16 dummy(x); | |
17 int y=2; | |
18 y*=x; | |
19 assert(y==6); | |
20 assert(x==3); | |
21 return 0; | |
22 } | |
23 |