From fce142b4282d80f16fff53ba1cbd2572119b17ef Mon Sep 17 00:00:00 2001 From: Matthew White 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 @@ + + + + 067_link_varargs.cpp + Test + + + void + void func + (int p) + func + + int + p + + + + + A function + + + + + + + void + void func + (int p,...) + func + + int + p + + + ... + + + + + Overloaded function taking variadic arguments + + + + + + + + + + See the function for more info. See the test class. + + + + 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 @@ + + + + 068_ref_varargs.cpp + Test + + + void + void func + (int p) + func + + int + p + + + + + A function + + + + + + + void + void func + (int p,...) + func + + int + p + + + ... + + + + + Overloaded function taking variadic arguments + + + + + + + + + + See the function for more info. See the test class. + + + + 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