view run/b/bool_01.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 03b5056496f1
children
line wrap: on
line source

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

module dstress.run.bool_01;

int main(){
	bool a;
	if(a.max != 1){
		assert(0);
	}
	if(a.min != 0){
		assert(0);
	}
	if(a.init != 0){
		assert(0);
	}

	if(a.sizeof != typeid( bool ).tsize()){
		assert(0);
	}

	a = true;
	if(a != 1){
		assert(0);
	}
	bool b = 1;
	if(b != 1){
		assert(0);
	}

	bool c = false;
	if(c != 0){
		assert(0);
	}

	bool d = 0;
	if(d != 0){
		assert(0);
	}

	return 0;
}