ref: 05484c9578997847673a50b1874e1ce720930c94
parent: a02f6ec0102245d81519c74b2a8651be6a9cdd8c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Feb 23 10:00:49 EST 2017
[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.
--- /dev/null
+++ b/tests/execute/0118-voidmain.c
@@ -1,0 +1,8 @@
+
+int main(void);
+
+int
+main()
+{
+ return 0;
+}
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
@@ -108,3 +108,4 @@
0115-null-comparision.c
0116-floatcmp.c
0117-pointarith.c
+0118-voidmain.c