shithub: scc

Download patch

ref: 39efe97b2fff40d0e17fab3d0ddbc58778aca1eb
parent: 884acf9274a44d602d54e3e339c7730a9274c0d7
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Nov 15 14:35:21 EST 2021

tests/cc: Add 0191-ary-addr.c test

--- /dev/null
+++ b/tests/cc/execute/0191-ary-addr.c
@@ -1,0 +1,14 @@
+static const char *bla[] = { "a", "b" };
+
+void
+fn(const void *v)
+{
+}
+
+int
+main(void)
+{
+	fn(&bla);
+
+	return 0;
+}
--- a/tests/cc/execute/scc-tests.lst
+++ b/tests/cc/execute/scc-tests.lst
@@ -181,3 +181,4 @@
 0188-multi-string.c [TODO]
 0189-cpp-no.c [TODO]
 0190-enum-ary.c [TODO]
+0191-ary-addr.c [TODO]