shithub: scc

Download patch

ref: cd64376e760f82de7ac4bcef0e8567be134b4093
parent: f515b0a6e4650933cee27e75a2d9e3690222cbfd
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 6 08:03:26 EST 2017

[tests] Add test for function declarations

This test is intended for mixing several function
definitions and variables in the same declaration list.

--- /dev/null
+++ b/tests/execute/0125-fundcl.c
@@ -1,0 +1,21 @@
+
+int f(int a), g(int a), a;
+
+
+int
+main()
+{
+	return f(1) - g(1);
+}
+
+int
+f(int a)
+{
+	return a;
+}
+
+int
+g(int a)
+{
+	return a;
+}