[hackers] [scc] [tests] Add test for function declarations || Roberto E. Vargas Caballero
commit d2a403e1c27fb66ba879ec42af7ee50c35accb1a
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 13:03:26 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 13:03:26 2017 +0100
[tests] Add test for function declarations
This test is intended for mixing several function
definitions and variables in the same declaration list.
diff --git a/tests/execute/0125-fundcl.c b/tests/execute/0125-fundcl.c
new file mode 100644
index 0000000..62c773c
--- /dev/null
+++ b/tests/execute/0125-fundcl.c
_AT_@ -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;
+}
Received on Mon Mar 06 2017 - 13:04:34 CET
This archive was generated by hypermail 2.3.0
: Mon Mar 06 2017 - 13:12:23 CET