Mercurial > projects > dstress
view run/s/struct_initialization_12_C.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 | d40d75fcd5c5 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Matti Niemenmaa <deewiant@gmail.com> // @date@ 2007-06-15 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1268 // @desc@ [Issue 1268] Struct literals try to initialize static arrays of non-static structs incorrectly module dstress.run.s.struct_initialization_12_C; typedef int I = 13; struct S{ I[5] x; } int main(){ S s; for(size_t i = 0; i < 5; i++){ if(13 != s.x[i]){ assert(0); } } return 0; }