ref: 09065798bf0445de3ec4a34ef714bdae3502f198
parent: f53e048d3a57eeee135e2d8aa3cd72b7f3dc2711
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Nov 4 11:42:53 EDT 2021
tests/cc: Enable 0134-arith.c
--- a/tests/cc/execute/0134-arith.c
+++ b/tests/cc/execute/0134-arith.c
@@ -7,30 +7,30 @@
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;
}
--- 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]