view tests/code/struct_3.d @ 39:1a7a308f75b2 new_gen

Added some struct tests, and implemented a wrong struct assignment It assumes 8 bytes for all struct, we have no DType available at that point Slight improvement to an error message (Member access to unknown members)
author Anders Halager <halager@gmail.com>
date Mon, 21 Apr 2008 22:47:12 +0200
parents
children
line wrap: on
line source


struct S
{
    int a;
}

void main()
{
    S s;
    S s2 = s;
}