Mercurial > projects > dstress
view run/opDivAssign_02.d @ 1611:9f94be6a5ace
Fix typo in last commit.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 10:56:43 +0200 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg_1998@yahoo.com> // @date@ 2005-04-18 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3713 module dstress.run.opDivAssign_02; void dummy(...){ } int main() { ubyte x = 2; dummy(x); int y=6; y/=x; assert(y==3); assert(x==2); return 0; }