view run/o/opDiv_11_A.d @ 1091:9dcac8d4e97f

post DMD-0.163 review
author thomask
date Fri, 21 Jul 2006 11:15:26 +0000
parents 2474750465ff
children
line wrap: on
line source

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

// @author@	Hiroshi Sakurai <Hiroshi_member@pathlink.com>
// @date@	2005-08-24
// @uri@	news:dehc8m$1nk5$1@digitaldaemon.com
// @uri@	http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F19

module dstress.run.o.opDiv_11_A;

void test_A(int i){
	assert(i==1);
}

void test_B(int i){
	assert(i==-1);
}

int main(){
	test_A(3/3);
	test_B(-3/3);
	test_B(3/-3);
	test_A(-3/-3);
	test_B((-3)/3);
	test_A((-3)/(-3));
	test_B(3/(-3));
	return 0;
}