Mercurial > projects > ldc
view tests/mini/nocompile_initoverlap1.d @ 1254:747fdd9245d7
Added checks for overlapping union initializers, as shown in bug #259 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 22 Apr 2009 01:18:21 +0200 |
parents | |
children |
line wrap: on
line source
struct Vector { union { float x; float y; } const static Vector zero = { x : 0, y : 0 }; } struct HBoxLayout { Vector padding = Vector.zero; }