commit d2a403e1c27fb66ba879ec42af7ee50c35accb1a
parent 14eceba2511c69bd9806d0085595d386ef7a58eb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 6 Mar 2017 13:03:26 +0100
[tests] Add test for function declarations
This test is intended for mixing several function
definitions and variables in the same declaration list.
Diffstat:
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/tests/execute/0125-fundcl.c b/tests/execute/0125-fundcl.c
@@ -0,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;
+}