Mercurial > projects > dstress
view run/f/foreach_38_B.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | a74f0139fc3d |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Frits van Bommel <fvbommel@wxs.nl> // @date@ 2007-02-06 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=932 // @desc@ [Issue 932] static foreach in second template instantiation uses wrong tupleof module dstress.run.f.foreach_38_B; void Fields(C)(){ foreach(i, a; typeof(C.tupleof)){ static assert(is(a == typeof(C.tupleof)[i])); } } struct MyStruct1 { int afield; } struct MyStruct2 { real afield; } int main(){ Fields!(MyStruct1); return 0; }