Mercurial > projects > dstress
diff run/bug_cgcod_1640_A.d @ 210:54c661db561b
Internal error: ..\ztc\cgcod.c 1640
h3r3tic <foo@bar.baz>
2004-12-25
news:cqihjc$16c8$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs/2602
author | thomask |
---|---|
date | Sun, 26 Dec 2004 16:36:09 +0000 |
parents | |
children | 1e6afb94ce6d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_cgcod_1640_A.d Sun Dec 26 16:36:09 2004 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ h3r3tic <foo@bar.baz> +// @date@ 2004-12-25 +// @uri@ news:cqihjc$16c8$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2602 + +module dstress.run.bug_cgcod_1640_A; + +// __DSTRESS_DFLAGS__ -O + +struct MyStruct{ + int a, b, c; +} + +void bar() {} + +int main(){ + MyStruct[] arr; + foreach(MyStruct a; arr){ + bar(); + } + return 0; +}