view test/scope3.d @ 274:9f228c1e5311 trunk

[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing. Test results for current revision added.
author ChristianK
date Thu, 19 Jun 2008 13:54:31 +0200
parents d9d5d59873d8
children
line wrap: on
line source

module scope3;
extern(C) int printf(char*, ...);
void main()
{
    int i;
    while (i < 10) {
        scope(success) i++;
    }
    printf("%d\n", i);
}