Mercurial > projects > ldc
view test/bug24.d @ 102:027b8d8b71ec trunk
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
Basically it tries to do the following in order: Resolve types, Declare symbols, Create constant initializers, Apply initializers, Generate functions bodies.
ClassInfo is now has the most useful(biased?) members working.
Probably other stuf...
author | lindquist |
---|---|
date | Sun, 18 Nov 2007 06:52:57 +0100 |
parents | 6fcc08a4d406 |
children | d9d5d59873d8 |
line wrap: on
line source
module bug24; struct S { long l; float f; } void main() { S s = S(3L,2f); delegate { S t = S(4L, 1f); delegate { s.l += t.l; s.f += t.f; }(); }(); printf("%lu %f\n", s.l, s.f); assert(s.l == 7 && s.f == 3); }