view tangotests/e.d @ 264:a9dae3da4e87 trunk

[svn r285] Fixed D -> bool LLVM helper for floating point values. Changed the way D-style varargs are passed, now each param should be aligned to size_t.sizeof.
author lindquist
date Sat, 14 Jun 2008 17:28:13 +0200
parents 68a7dd38c03c
children
line wrap: on
line source

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

class MyClass
{
    this(int i = 4)
    {
        inner = this.new InnerClass;
    }

    class InnerClass : Object.Monitor
    {
        void lock() {}
        void unlock() {}
    }

    InnerClass inner;
}

void func()
{
    scope c = new MyClass(42);
}

void main()
{
    func();
}