Added checks for overlapping union initializers, as shown in bug #259 .

This commit is contained in:
Tomas Lindquist Olsen
2009-04-22 01:18:21 +02:00
parent 575038bfbd
commit f6f12e4241
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
struct Vector {
union { float x; float y; }
const static Vector zero = { x : 0, y : 0 };
}
struct HBoxLayout {
Vector padding = Vector.zero;
}