commit 2b1cab704ca1f2538a50a801a0af9ec3d09f8c38
parent d9307717fc66708784043a3ddc30244fb01101d2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 12 Nov 2021 07:14:06 +0100
tests/cc: Improve 0032-indec.c
Returning different error code helps while debugging.
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/cc/execute/0032-indec.c b/tests/cc/execute/0032-indec.c
@@ -21,28 +21,28 @@ main()
if (x != 1)
return 1;
if (y != 1)
- return 1;
+ return 2;
x = one();
y = --x;
if (x != 0)
- return 1;
+ return 3;
if (y != 0)
- return 1;
+ return 4;
x = zero();
y = x++;
if (x != 1)
- return 1;
+ return 5;
if (y != 0)
- return 1;
+ return 6;
x = one();
y = x--;
if (x != 0)
- return 1;
+ return 7;
if (y != 1)
- return 1;
+ return 8;
return 0;
}