On Sun, 09 Jun 2019, Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx> wrote:
This covers two common scenarios for the same expected result. '(void)'
and '()'. This should catch issues like issue #14.
---
test/example-70-function.c | 10 ++++++++++
test/example-70-function.rst | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/test/example-70-function.c b/test/example-70-function.c
index 5042b07..50cb234 100644
--- a/test/example-70-function.c
+++ b/test/example-70-function.c
@@ -15,3 +15,13 @@ int frob(struct list *list, enum mode mode);
* :param ...: variadic
*/
int frobo(const char *fmt, ...);
+
+/**
+ * Void parameter.
+ */
+int frobonize(void);
+
+/**
+ * Empty parameters.
+ */
+int froboation();
diff --git a/test/example-70-function.rst b/test/example-70-function.rst
index acdfe98..69a0981 100644
--- a/test/example-70-function.rst
+++ b/test/example-70-function.rst
@@ -16,3 +16,13 @@
:param fmt: the format
:param ...: variadic
+
+.. c:function:: int frobonize()
+
+ Void parameter.
+
+
+.. c:function:: int froboation()
+
+ Empty parameters.
+
--
2.21.0