Mercurial > projects > dstress
annotate run/byte_05.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.byte_05; | |
0 | 6 |
7 int main(){ | |
8 byte a, b, c; | |
9 | |
10 // "*" | |
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 a=-7; b=-13; c=a*b; | |
24 assert( a == -7); | |
25 assert( b == -13); | |
26 assert( c == 91); | |
27 | |
28 return 0; | |
1 | 29 } |