shithub: scc

Download patch

ref: fb16e02819fe22bd86121505af1c58782ba18bba
parent: 352fd1411b9c35e90d824162229a6eb32dd9a7e2
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Nov 11 03:09:12 EST 2021

tests/cc: Fix 0169-string.c

The size of the array was too small for the initializer.

--- /dev/null
+++ b/tests/cc/error/0025-bad-init.c
@@ -1,0 +1,7 @@
+char s2[2] = "foo";
+
+int
+main()
+{
+	return 0;
+}
--- a/tests/cc/execute/0169-string.c
+++ b/tests/cc/execute/0169-string.c
@@ -1,6 +1,6 @@
 char s0[] = "foo";
 char s1[7] = "foo";
-char s2[2] = "foo";
+char s2[3] = "foo";
 char s3[] = {"foo"};
 char *p = "foo";