commit 801803b4a94822bc1a1f4d69b797f312519dfdfd
parent 688a146b5b4865b27e773f3126281ab9cf67c60f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 23 Feb 2017 15:00:49 +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.
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/execute/0118-voidmain.c b/tests/execute/0118-voidmain.c
@@ -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
@@ -108,3 +108,4 @@
0115-null-comparision.c
0116-floatcmp.c
0117-pointarith.c
+0118-voidmain.c