view run/s/static_35_A.d @ 776:a025bb49e44f

Kris <fu@bar.com> 2005-12-05 news:dn27o6$24c4$1@digitaldaemon.com
author thomask
date Sat, 10 Dec 2005 10:36:48 +0000
parents
children b8c0195059d9
line wrap: on
line source

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

// @author@	Kris <fu@bar.com>
// @date@	2005-12-05
// @uri@	news:dn27o6$24c4$1@digitaldaemon.com

module dstress.run.s.static_35_A;

struct Outer{
	static struct Inner(T){
		static int test(){
			return 2 + T.sizeof;
		}
	}
}

int main(){
	if(Outer.Inner!(char).test() == 3){
		return 0;
	}
}