source("TestHarness.bsh");

class TestStaticInit1 
{
	static int staticCounter = 0;
	int instanceCounter = 0;
	
	static { print("static!"); staticCounter++; }
	{ print("instance!"); instanceCounter++; }
}

assert( TestStaticInit1.staticCounter == 1 );
tsi=new TestStaticInit1();
assert( TestStaticInit1.staticCounter == 1 );
assert( tsi.staticCounter == 1 );
assert( tsi.instanceCounter == 1 );
tsi=new TestStaticInit1();
assert( TestStaticInit1.staticCounter == 1 );
assert( tsi.instanceCounter == 1 );

complete();
