Mercurial > projects > dstress
view run/inline_06.d @ 736:1e6afb94ce6d
updated meta data for Torture
author | thomask |
---|---|
date | Sat, 12 Nov 2005 07:28:46 +0000 |
parents | 38499bb7a5a2 |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Ilya Zaitseff <sark7@mail333.com> // @date@ 2005-02-14 // @uri@ news:opsl6xtajtaaezs2@robingood // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2984 module dstress.run.inline_06; struct MyStruct{ int[] x; int foo() { return 3; } MyStruct bar(){ MyStruct v; return v; } float bug(MyStruct p1) { return bar.foo; } } int main(){ MyStruct s; assert(s.bug(s)==3); return 0; }