view run/o/opCall_01_C.d @ 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents 81222734adf3
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	<oskar.linde@gmail.com>
// @date@	2006-05-11
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=135

module dstress.run.o.opCall_01_C;

struct X{
	static int opCall(){
		return 3;
	}
}

int main(){
	X x;

	if((typeof(x))() != 3){
		assert(0);
	}

	return 0;
}