[hackers] [scc] [tests] Improve error test for void parameter || Quentin Rameau

From: <git_AT_suckless.org>
Date: Tue, 28 Feb 2017 21:08:14 +0100 (CET)

commit 14d3966cf69de96f4a25b0f4ffb462d51b3b2112
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Feb 27 08:26:01 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Feb 28 21:07:03 2017 +0100

    [tests] Improve error test for void parameter

diff --git a/tests/error/0018-voidparam.c b/tests/error/0018-voidparam.c
index 1f927e5..2167a26 100644
--- a/tests/error/0018-voidparam.c
+++ b/tests/error/0018-voidparam.c
_AT_@ -1,6 +1,23 @@
+int
+a(void, int i)
+{
+ return 0;
+}
 
 int
-foo(void, int x)
+b(int i, void)
+{
+ return 0;
+}
+
+int
+c(void, void)
+{
+ return 0;
+}
+
+int
+d(void, ...)
 {
         return 0;
 }
_AT_@ -8,5 +25,5 @@ foo(void, int x)
 int
 main()
 {
- return foo();
+ return 0;
 }
Received on Tue Feb 28 2017 - 21:08:14 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 28 2017 - 21:12:19 CET