mirror of https://github.com/aamine/cbc
* test/div.cb: test %esi usage.
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4044 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
8f3e39031a
commit
6164216de3
|
|
@ -1,3 +1,7 @@
|
|||
Mon Sep 22 01:45:49 2008 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* test/div.cb: test %esi usage.
|
||||
|
||||
Sun Sep 21 18:14:31 2008 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* net/loveruby/cflat/ast/Function.java: refactoring: new method
|
||||
|
|
|
|||
10
test/div.cb
10
test/div.cb
|
|
@ -3,6 +3,14 @@ import stdio;
|
|||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
printf("%d;%d;%d;%d\n", 1 / 1, 2 / 1, 4 / 2, 5 / 2);
|
||||
int[4] a;
|
||||
|
||||
printf("%d;%d;%d;%d", 1 / 1, 2 / 1, 4 / 2, 5 / 2);
|
||||
|
||||
a[0] = 16;
|
||||
a[0] /= 1 + 1 * 1 + 1 + 1;
|
||||
printf(";%d", a[0]);
|
||||
|
||||
puts("");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ test_07_arithmetic() {
|
|||
assert_out "1;2;3;4;5;6;7;8;9;10;11" ./add
|
||||
assert_out "1;2;3;4;5;6;7;8;9;10;11;12;13" ./sub
|
||||
assert_out "1;4;15" ./mul
|
||||
assert_out "1;2;2;2" ./div
|
||||
assert_out "1;2;2;2;4" ./div
|
||||
assert_out "0;0;1;4;7" ./mod
|
||||
|
||||
assert_out "3" ./assoc
|
||||
|
|
|
|||
Loading…
Reference in New Issue