view run/s/static_if_01_B.d @ 1604:cc724d521a34

Add note about possible issues with test case depending on switch scopes.
author Christian Kamm <kamm incasoftware de>
date Sat, 28 Mar 2009 19:17:58 +0100
parents c4c154735ebb
children
line wrap: on
line source

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

module dstress.run.s.static_if_01_B;

const int a = 2;
const int b = 3;

static if (a == b - 1){
	const int c = a + b;
}else{
	static assert(0);
}

int main(){
	if(c == 5){
		return 0;
	}
}