shithub: scc

Download patch

ref: 30037a7e84c815e217ceacd71a7b7cd3bd47881d
parent: 04f9f3d5db04a8ed64b0641378dbb1bab262f694
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Nov 11 13:02:17 EST 2021

tests/cc: Fix test 0167-array.c

The index was wrong in the second array making an out of bound access.

--- a/tests/cc/execute/0167-array.c
+++ b/tests/cc/execute/0167-array.c
@@ -11,5 +11,5 @@
 int
 main(void)
 {
-	return !(arr1[1][2] == arr2[1][3]);
+	return !(arr1[1][2] == arr2[1][2]);
 }