view run/version_02.d @ 247:3bc2f45a191f

disabled unoffical version identifiers "Unix" and "darwin"
author thomask
date Mon, 24 Jan 2005 20:07:40 +0000
parents 014844597bbd
children 21efb6c131f1
line wrap: on
line source

module dstress.run.version_02;

int main(){
	int os;
	
	version(Win32){
		os+=2;
	}
	
	version(Win64){
		os+=2;
	}
	
	version(Windows){
		os--;
	}
	
	version(linux){
		os++;
	}

	version(darwin){
		os+=99; // this isn't part of the standard (v0.111)
	}

	version(Unix){
		os+=99; // this isn't part of the standard (v0.111)
	}
	
	assert(os == 1);
	
	return 0;
}