Mercurial > projects > dstress
view compile/t/tuple_18_D.d @ 1622:d402aa53926c
Add test for bug 3092 written by Manuel K?nig
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Tue, 19 Oct 2010 19:18:23 -0300 |
parents | 8eb7223bbe9a |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Russ Lewis <webmaster@villagersonline.com> // @date@ 2007-03-05 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1026 // @desc@ [Issue 1026] dmd SEGV when checking length of Tuple elements when length == 0 module dstress.compile.t.tuple_18_D; template Tuple(Elements...) { alias Elements Tuple; } union foo { Tuple!() elements; } static assert(foo.elements.length == 0);