From fce142b4282d80f16fff53ba1cbd2572119b17ef Mon Sep 17 00:00:00 2001
From: Matthew White <mehw.is.me@inventati.org>
Date: Mon, 24 Jul 2017 07:28:12 +0200
Subject: Add variadic function arguments '...' regression tests

* testing/067_link_varargs.cpp: new file, @link regression test for
  variadic function arguments '...'
* testing/067/067__link__varargs_8cpp.xml: new file, expected @link
  regression test result for variadic function arguments '...'
* testing/068_ref_varargs.cpp: new file, @ref regression test for
  variadic function arguments '...'
* testing/068/068__ref__varargs_8cpp.xml: new file, expected @ref
  regression test result for variadic function arguments '...'
---
 testing/067/067__link__varargs_8cpp.xml | 54 +++++++++++++++++++++++++++++++++
 testing/067_link_varargs.cpp            | 20 ++++++++++++
 testing/068/068__ref__varargs_8cpp.xml  | 54 +++++++++++++++++++++++++++++++++
 testing/068_ref_varargs.cpp             | 20 ++++++++++++
 4 files changed, 148 insertions(+)
 create mode 100644 testing/067/067__link__varargs_8cpp.xml
 create mode 100644 testing/067_link_varargs.cpp
 create mode 100644 testing/068/068__ref__varargs_8cpp.xml
 create mode 100644 testing/068_ref_varargs.cpp

diff --git a/testing/067/067__link__varargs_8cpp.xml b/testing/067/067__link__varargs_8cpp.xml
new file mode 100644
index 0000000..76eb543
--- /dev/null
+++ b/testing/067/067__link__varargs_8cpp.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+  <compounddef id="067__link__varargs_8cpp" kind="file" language="C++">
+    <compoundname>067_link_varargs.cpp</compoundname>
+    <innerclass refid="class_test" prot="public">Test</innerclass>
+    <sectiondef kind="func">
+      <memberdef kind="function" id="067__link__varargs_8cpp_1affb6da6cff1b57cdf8efc0123dceac9b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+        <type>void</type>
+        <definition>void func</definition>
+        <argsstring>(int p)</argsstring>
+        <name>func</name>
+        <param>
+          <type>int</type>
+          <declname>p</declname>
+        </param>
+        <briefdescription>
+        </briefdescription>
+        <detaileddescription>
+          <para>A function </para>
+        </detaileddescription>
+        <inbodydescription>
+        </inbodydescription>
+        <location file="067_link_varargs.cpp" line="11" column="1"/>
+      </memberdef>
+      <memberdef kind="function" id="067__link__varargs_8cpp_1a106e01084409028d1b41f5ad83fb82c1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+        <type>void</type>
+        <definition>void func</definition>
+        <argsstring>(int p,...)</argsstring>
+        <name>func</name>
+        <param>
+          <type>int</type>
+          <declname>p</declname>
+        </param>
+        <param>
+          <type>...</type>
+        </param>
+        <briefdescription>
+        </briefdescription>
+        <detaileddescription>
+          <para>Overloaded function taking variadic arguments </para>
+        </detaileddescription>
+        <inbodydescription>
+        </inbodydescription>
+        <location file="067_link_varargs.cpp" line="15" column="1"/>
+      </memberdef>
+    </sectiondef>
+    <briefdescription>
+    </briefdescription>
+    <detaileddescription>
+      <para>See <ref refid="067__link__varargs_8cpp_1a106e01084409028d1b41f5ad83fb82c1" kindref="member">the function</ref> for more info. See the <ref refid="class_test" kindref="compound">test</ref> class. </para>
+    </detaileddescription>
+    <location file="067_link_varargs.cpp"/>
+  </compounddef>
+</doxygen>
diff --git a/testing/067_link_varargs.cpp b/testing/067_link_varargs.cpp
new file mode 100644
index 0000000..8cf25a2
--- /dev/null
+++ b/testing/067_link_varargs.cpp
@@ -0,0 +1,20 @@
+// objective: test \link command with function variadic arguments '...'
+// check: 067__link__varargs_8cpp.xml
+
+/** \file
+ *  See \link func(int,...) the function\endlink for more info.
+ *  See the \link Test test\endlink class.
+ */
+
+/** A function
+ */
+void func(int p);
+
+/** Overloaded function taking variadic arguments
+ */
+void func(int p, ...);
+
+/** A test */
+class Test
+{
+};
diff --git a/testing/068/068__ref__varargs_8cpp.xml b/testing/068/068__ref__varargs_8cpp.xml
new file mode 100644
index 0000000..8e0dc00
--- /dev/null
+++ b/testing/068/068__ref__varargs_8cpp.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+  <compounddef id="068__ref__varargs_8cpp" kind="file" language="C++">
+    <compoundname>068_ref_varargs.cpp</compoundname>
+    <innerclass refid="class_test" prot="public">Test</innerclass>
+    <sectiondef kind="func">
+      <memberdef kind="function" id="068__ref__varargs_8cpp_1affb6da6cff1b57cdf8efc0123dceac9b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+        <type>void</type>
+        <definition>void func</definition>
+        <argsstring>(int p)</argsstring>
+        <name>func</name>
+        <param>
+          <type>int</type>
+          <declname>p</declname>
+        </param>
+        <briefdescription>
+        </briefdescription>
+        <detaileddescription>
+          <para>A function </para>
+        </detaileddescription>
+        <inbodydescription>
+        </inbodydescription>
+        <location file="068_ref_varargs.cpp" line="11" column="1"/>
+      </memberdef>
+      <memberdef kind="function" id="068__ref__varargs_8cpp_1a106e01084409028d1b41f5ad83fb82c1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+        <type>void</type>
+        <definition>void func</definition>
+        <argsstring>(int p,...)</argsstring>
+        <name>func</name>
+        <param>
+          <type>int</type>
+          <declname>p</declname>
+        </param>
+        <param>
+          <type>...</type>
+        </param>
+        <briefdescription>
+        </briefdescription>
+        <detaileddescription>
+          <para>Overloaded function taking variadic arguments </para>
+        </detaileddescription>
+        <inbodydescription>
+        </inbodydescription>
+        <location file="068_ref_varargs.cpp" line="15" column="1"/>
+      </memberdef>
+    </sectiondef>
+    <briefdescription>
+    </briefdescription>
+    <detaileddescription>
+      <para>See <ref refid="068__ref__varargs_8cpp_1a106e01084409028d1b41f5ad83fb82c1" kindref="member">the function</ref> for more info. See the <ref refid="class_test" kindref="compound">test</ref> class. </para>
+    </detaileddescription>
+    <location file="068_ref_varargs.cpp"/>
+  </compounddef>
+</doxygen>
diff --git a/testing/068_ref_varargs.cpp b/testing/068_ref_varargs.cpp
new file mode 100644
index 0000000..c85daa2
--- /dev/null
+++ b/testing/068_ref_varargs.cpp
@@ -0,0 +1,20 @@
+// objective: test \ref command with function variadic arguments '...'
+// check: 068__ref__varargs_8cpp.xml
+
+/** \file
+ *  See \ref func(int,...) "the function" for more info.
+ *  See the \ref Test "test" class.
+ */
+
+/** A function
+ */
+void func(int p);
+
+/** Overloaded function taking variadic arguments
+ */
+void func(int p, ...);
+
+/** A test */
+class Test
+{
+};
-- 
cgit v0.12

