Mercurial > projects > dstress
changeset 1517:cf7719e0ef1b
updated to DMD-1.013
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:21:32 +0000 |
parents | 4576b42ef546 |
children | 5b8f89bc1b52 |
files | nocompile/r/ref_01_A.d run/r/ref_01_A.d |
diffstat | 2 files changed, 19 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/r/ref_01_A.d Fri Apr 27 17:21:10 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// Porting: C# - -// __DSTRESS_ELINE__ 11 - -module dstress.nocompile.r.ref_01_A; - -void test(ref int i){ -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/r/ref_01_A.d Fri Apr 27 17:21:32 2007 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.r.ref_01_A; + +void test(ref int i){ + i++; +} + +int main(){ + int i = 2; + test(i); + if(3 != i){ + assert(0); + } + + return 0; +}