comparison 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
comparison
equal deleted inserted replaced
1253:752bed475b75 1254:747fdd9245d7
1 struct Vector {
2 union { float x; float y; }
3 const static Vector zero = { x : 0, y : 0 };
4 }
5
6 struct HBoxLayout {
7 Vector padding = Vector.zero;
8 }