shithub: scc

Download patch

ref: 68d883b47e13b145757532c4f9fb77df515eb613
parent: 04dd4c232b1a42be6eb4ffbd2e41d64403023351
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Nov 12 02:14:06 EST 2021

tests/cc: Improve 0032-indec.c

Returning different error code helps while debugging.

--- a/tests/cc/execute/0032-indec.c
+++ b/tests/cc/execute/0032-indec.c
@@ -21,28 +21,28 @@
 	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;
 }