Mercurial > projects > dstress
view run/r/ref_01_C.d @ 1555:01c289574a6d
DMD-1.011: ref
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:45:40 +0000 |
parents | |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.r.ref_01_C; int main(){ char[] arr = "abc".dup; foreach(ref element; arr){ element += 1; } if("bcd" != arr){ assert(0); } return 0; }