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