comparison run/byte_05.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_05.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=7; b=13; c=a*b;
8 assert( a == 7);
9 assert( b == 13);
10 assert( c == 91);
11 a=-7; b=13; c=a*b;
12 assert( a == -7);
13 assert( b == 13);
14 assert( c == -91);
15 a=7; b=-13; c=a*b;
16 assert( a == 7);
17 assert( b == -13);
18 assert( c == -91);
19 a=-7; b=-13; c=a*b;
20 assert( a == -7);
21 assert( b == -13);
22 assert( c == 91);
23
24 return 0;
25 }