mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Split up declaration, constant initializer gen and definition for globals, structs, classes and functions. Improved ClassInfo support (not complete), not in vtable yet. Fixed a bunch of forward reference problems. Much more. Major commit! :)
16 lines
158 B
D
16 lines
158 B
D
module structs7;
|
|
|
|
pragma(LLVM_internal, "notypeinfo")
|
|
struct S
|
|
{
|
|
int i;
|
|
long l;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S s = void;
|
|
int i = s.i;
|
|
long l = s.l;
|
|
}
|