view test/scope3.d @ 206:cd2c9f4010e4 trunk

[svn r222] Forgot to remove volatile ATTENTION. Fixed a few comment types. Forgot to add makefile for the basic GC.
author lindquist
date Tue, 13 May 2008 18:07:03 +0200
parents 8b0e809563df
children d9d5d59873d8
line wrap: on
line source

module scope3;

void main()
{
    int i;
    while (i < 10) {
        scope(success) i++;
    }
    printf("%d\n", i);
}