[hackers] [scc] [tests] Add new test about call functions || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 3 Oct 2016 16:17:25 +0200 (CEST)

commit e1f34328f525289ed96ef82a644ce1abd6916c4e
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Oct 3 16:16:48 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Oct 3 16:16:48 2016 +0200

    [tests] Add new test about call functions

diff --git a/tests/0081-calls.c b/tests/0081-calls.c
new file mode 100644
index 0000000..64425f5
--- /dev/null
+++ b/tests/0081-calls.c
_AT_@ -0,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;
+}
diff --git a/tests/scc-tests.lst b/tests/scc-tests.lst
index 1782198..9728e79 100644
--- a/tests/scc-tests.lst
+++ b/tests/scc-tests.lst
_AT_@ -76,3 +76,4 @@
 0078-dirifexpr.c
 0079-cond.c
 0080-arrays.c
+0081-calls.c
Received on Mon Oct 03 2016 - 16:17:25 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 03 2016 - 16:24:18 CEST