view test/nested10.d @ 174:16e676ae5ab4 trunk

[svn r190] Fixed array concatenation for some broken cases. Added a sanity check for the Dsymbol state set.
author lindquist
date Tue, 06 May 2008 18:36:46 +0200
parents 8096ba7082db
children 25fa34e899e9
line wrap: on
line source

module nested10;

void main()
{
    int j = 3;
    void F()
    {
        int i = j;
        printf("F: i = %d, j = %d\n", i, j);
        void G()
        {
            printf("G: i = %d, j = %d\n", i, j);
            j += i;
        }
        G();
    }
    F();
    printf("6 = %d\n", j);
    assert(j == 6);
}