[hackers] [scc] [tests] Add test 0118-voidmain.c || Roberto E. Vargas Caballero
commit 801803b4a94822bc1a1f4d69b797f312519dfdfd
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Feb 23 15:00:49 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Feb 23 15:00:49 2017 +0100
[tests] Add test 0118-voidmain.c
An empty list of parameters in a definition of a function is
equivalent declare this function as void, but this is not true
in declarations, where an empty parameter list means that the
function is a k&r alike function.
diff --git a/tests/execute/0118-voidmain.c b/tests/execute/0118-voidmain.c
new file mode 100644
index 0000000..ed5f059
--- /dev/null
+++ b/tests/execute/0118-voidmain.c
_AT_@ -0,0 +1,8 @@
+
+int main(void);
+
+int
+main()
+{
+ return 0;
+}
diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst
index c45d092..c766571 100644
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
_AT_@ -108,3 +108,4 @@
0115-null-comparision.c
0116-floatcmp.c
0117-pointarith.c
+0118-voidmain.c
Received on Thu Feb 23 2017 - 15:02:14 CET
This archive was generated by hypermail 2.3.0
: Thu Feb 23 2017 - 15:12:18 CET