view run/s/static_if_05_B.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +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;
	}
}