comparison run/byte_02.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_02.d,v 1.1 2004/08/20 23:42:51 th Exp $
2
3 int main(){
4 byte a, b, c;
5
6 // "+"
7 a=16; b=-124; c=a+b;
8 assert( a == 16);
9 assert( b == -124);
10 assert( c == -108);
11 a=-124; b=16; c=a+b;
12 assert( a == -124);
13 assert( b == 16);
14 assert( c == -108);
15 a=63; b=28; c=a+b;
16 assert( a == 63);
17 assert( b == 28);
18 assert( c == 91);
19 a=-63; b=-28; c=a+b;
20 assert( a == -63);
21 assert( b == -28);
22 assert( c == -91);
23
24 return 0;
25 }