comparison run/byte_04.d @ 0:3269e4627918

init dstress
author svnowner
date Sat, 25 Sep 2004 22:33:30 +0000
parents
children 3414705c41ac
comparison
equal deleted inserted replaced
-1:000000000000 0:3269e4627918
1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_04.d,v 1.1 2004/08/20 23:42:52 th Exp $
2
3 int main(){
4 byte a, b, c;
5
6 // "/"
7 a=91; b=7; c=a/b;
8 assert( a == 91);
9 assert( b == 7);
10 assert( c == 13);
11 a=-91; b=13; c=a/b;
12 assert( a == -91);
13 assert( b == 13);
14 assert( c == -7);
15 a=91; b=-13; c=a/b;
16 assert( a == 91);
17 assert( b == -13);
18 assert( c == -7);
19 a=-91; b=-13; c=a/b;
20 assert( a == -91);
21 assert( b == -13);
22 assert( c == 7);
23
24 return 0;
25 }