Mercurial > projects > dstress
view run/t/template_struct_04_P2.d @ 920:5511f9277078
testcase review
author | thomask |
---|---|
date | Sun, 19 Mar 2006 11:29:18 +0000 |
parents | 61617b6d35af |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.t.template_struct_04_P2; struct S(cfloat f){ auto cf = f; } int main(){ const cfloat a = 1.2f + 2.1fi; S!(a)* sa = new S!(a); assert(sa.cf == a); const cfloat b = -0.8f - 0.1fi; S!(b) sb = new S!(b); assert(sb.cf == b); return 0; }