Mercurial > projects > dstress
view run/o/opSliceAssign_03_A.d @ 1321:e6887749b811
cleaned up remaining puremagic @uri@s
author | thomask |
---|---|
date | Sun, 31 Dec 2006 20:00:02 +0000 |
parents | f41655c00b51 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Gregor Richards <akaquinn@hotmail.com> // @date@ 2006-11-20 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=578 // @desc@ [Issue 578] New: GDC evaluates rvalue of array assignment repeatedly module dstress.run.o.opSliceAssign_03_A; int status; int test(){ status++; if(status != 1){ assert(0); } return status; } int main(){ int[10] a; a[] = test(); if(a.length != 10){ assert(0); } foreach(int i; a){ if(i != 1){ assert(0); } } return 0; }