Mercurial > projects > ldc
view tests/mini/union3.d @ 363:4d7495038ae8 trunk
[svn r384] Some minor code cleanups.
author | lindquist |
---|---|
date | Mon, 14 Jul 2008 21:49:54 +0200 |
parents | 1bb99290e03a |
children | 44f08170f4ef |
line wrap: on
line source
module union3; pragma(LLVM_internal, "notypeinfo") union vec3 { struct { float x,y,z; } float[3] xyz; } void main() { vec3 v; assert(&v.y is &v.xyz[1]); }