mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-21 06:35:21 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
14
tests/mini/union3.d
Normal file
14
tests/mini/union3.d
Normal file
@@ -0,0 +1,14 @@
|
||||
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]);
|
||||
}
|
||||
Reference in New Issue
Block a user