view test/nested12.d @ 273:25fa34e899e9 trunk

[svn r294] Fixed some more of the old tests.
author lindquist
date Wed, 18 Jun 2008 23:29:14 +0200
parents 5825d48b27d1
children
line wrap: on
line source

module nested12;

extern(C) int printf(char*, ...);

void main()
{
    func();
}

void func()
{
    void a(int i)
    {
        printf("%d\n", i);
    }

    void b()
    {
        a(42);
    }

    b();
}