ref: 982d98d6925be574d4a21a07f0013923abdccf07
parent: 1d246cbf29513abd2169c53fcbe667cfdd94f29e
author: Quentin Rameau <[email protected]>
date: Mon Feb 27 03:26:01 EST 2017
[tests] Improve error test for void parameter
--- a/tests/error/0018-voidparam.c
+++ b/tests/error/0018-voidparam.c
@@ -1,12 +1,29 @@
+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;
+}
+
+int
main()
{
- return foo();
+ return 0;
}