Mercurial > projects > dstress
view run/r/ref_01_A.d @ 1555:01c289574a6d
DMD-1.011: ref
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:45:40 +0000 |
parents | cf7719e0ef1b |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.r.ref_01_A; void test(ref int x){ if(3 != x){ assert(0); } x++; } int main(){ int x = 3; test(x); if(4 != x){ assert(0); } return 0; }