shithub: scc

Download patch

ref: 8a80489af7127a6a9d491137e0c0901f19113fa9
parent: 3dfdb8b82809ee38faf7a04cc047f48a52bae3dc
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Oct 3 12:16:48 EDT 2016

[tests] Add new test about call functions

--- /dev/null
+++ b/tests/0081-calls.c
@@ -1,0 +1,18 @@
+
+int
+f1(char *p)
+{
+	return *p+1;
+}
+
+int
+main()
+{
+	char s = 1;
+	int v[1000];
+	int f1(char *);
+
+	if (f1(&s) != 2)
+		return 1;
+	return 0;
+}
--- a/tests/scc-tests.lst
+++ b/tests/scc-tests.lst
@@ -76,3 +76,4 @@
 0078-dirifexpr.c
 0079-cond.c
 0080-arrays.c
+0081-calls.c