annotate tests/mini/union3.d @ 443:44f08170f4ef

Removed tango from the repository and instead added a runtime dir with the files needed to patch and build tango from svn. Reworked the LLVMDC specific pragmas.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Fri, 01 Aug 2008 00:32:06 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@73 1 module union3;
lindquist@73 2
lindquist@73 3 union vec3
lindquist@73 4 {
lindquist@73 5 struct { float x,y,z; }
lindquist@73 6 float[3] xyz;
lindquist@73 7 }
lindquist@73 8
lindquist@73 9 void main()
lindquist@73 10 {
lindquist@73 11 vec3 v;
lindquist@73 12 assert(&v.y is &v.xyz[1]);
lindquist@73 13 }