mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fixed some nested function problems when accessing outer function parameters. Major changes to handling of structs. Initial support for unions. Probably more...
15 lines
173 B
D
15 lines
173 B
D
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]);
|
|
}
|