view run/s/static_if_05_B.d @ 1537:457db9394771

[Issue 1204] segfault using struct in CTFE Don Clugston <clugdbug@yahoo.com.au> 2007-04-30 http://d.puremagic.com/issues/show_bug.cgi?id=1204
author thomask
date Mon, 07 May 2007 05:21:26 +0000
parents 893c2d75daf4
children
line wrap: on
line source

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

// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
// @date@	2005-06-10
// @uri@	news:oouon2-li3.ln1@lnews.kuehne.cn
// @desc@	mixing "static if" and "if"

module dstress.run.s.static_of_05_B;

int main(){
	const int i=3;
	if(i==1){
		return 2;
	}else static if(i==2){
		return 1;
	}else if(i==3){
		return 0;
	}
}