Mercurial > projects > dstress
view run/t/template_54_B.d @ 1613:70a23cb6a616
Fix incorrect run.t.throw_07_A/B tests
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 12:10:34 +0200 |
parents | 38be9fe455e2 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kirk McDonald <kirklin.mcdonald@gmail.com> // @date@ 2006-11-29 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=619 // @desc@ [Issue 619] Alias of templated struct instance crashes 0.175 module dstress.run.t.template_54_B; struct Foo { int i; } template Bar(T) { static Foo Bar = { 5 }; } void dummy(int x){ if(x != 5){ assert(0); } } int main() { dummy(Bar!(int).i); return 0; }