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