view tests/code/func_1.d @ 69:688b516408cd new_gen

Added 3 new small tests.
author Anders Johnsen <skabet@gmail.com>
date Thu, 01 May 2008 19:26:22 +0200
parents
children a49bb982a7b0
line wrap: on
line source



int main()
{
    testStruct t;
    t.x = 5;

    return t.x;
}

testStruct m(testStruct t)
{
    t.x = t.x - 5;
}

struct testStruct
{
    int x;
}