Mercurial > projects > dstress
view run/t/template_struct_04_S.d @ 1598:23834ba9736a
Fixed typos in test cases. See D bug 2174.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:03:25 +0200 |
parents | 61617b6d35af |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.t.template_struct_04_S; struct S(cdouble f){ cdouble cf = f; } int main(){ const cdouble a = 1.2 + 2.1i; S!(a) sa; assert(sa.cf == a); const cdouble b = -0.8 - 0.1i; S!(b) sb; assert(sb.cf == b); return 0; }