scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 92b000ddb3fb350fc0409fb292154f650129f050
parent 3e016769c93ccdc375685e39104566c4af72fb05
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  4 Nov 2021 15:42:53 +0100

tests/cc: Enable 0134-arith.c

Diffstat:
Mtests/cc/execute/0134-arith.c | 30+++++++++++++++---------------
Mtests/cc/execute/scc-tests.lst | 2+-
2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/tests/cc/execute/0134-arith.c b/tests/cc/execute/0134-arith.c @@ -7,30 +7,30 @@ main() if ((x = x + 2) != 2) // 2 return 1; if ((x = x - 1) != 1) // 1 - return 1; + return 2; if ((x = x * 6) != 6) // 6 - return 1; + return 3; if ((x = x / 2) != 3) // 3 - return 1; + return 4; if ((x = x % 2) != 1) // 1 - return 1; + return 5; if ((x = x << 2) != 4) // 4 - return 1; + return 6; if ((x = x >> 1) != 2) // 2 - return 1; + return 7; if ((x = x | 255) != 255) // 255 - return 1; + return 8; if ((x = x & 3) != 3) // 3 - return 1; + return 9; if ((x = x ^ 1) != 2) // 2 - return 1; - if ((x = x + (x > 1)) != 2) // 2 - return 1; - if ((x = x + (x < 3)) != 2) // 2 - return 1; + return 10; if ((x = x + (x > 1)) != 3) // 3 - return 1; + return 11; + if ((x = x + (x < 3)) != 3) // 3 + return 12; + if ((x = x + (x > 1)) != 4) // 4 + return 13; if ((x = x + (x < 4)) != 4) // 4 - return 1; + return 14; return 0; } diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -124,7 +124,7 @@ 0131-hello.c 0132-forward.c 0133-ftn-ptr.c -0134-arith.c [TODO] +0134-arith.c 0135-unary.c 0136-if.c 0137-int-cast.c [TODO]