Mercurial > projects > ldc
view test/bug24.d @ 282:74348f162225 trunk
[svn r303] Start a new basicblock behind a HaltExp to prevent compiler errors.
author | ChristianK |
---|---|
date | Sat, 21 Jun 2008 00:00:56 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module bug24; extern(C) int printf(char*, ...); 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); }