diff options
author | Vladimír Vondruš <mosra@centrum.cz> | 2018-12-29 20:13:08 (GMT) |
---|---|---|
committer | Vladimír Vondruš <mosra@centrum.cz> | 2018-12-29 20:13:08 (GMT) |
commit | abe694b6304c1d62fdb9ad1caa85ec91efac31d6 (patch) | |
tree | c0be11780501e2465300a987be138e28f6ca42a2 /testing/074_ref.cpp | |
parent | 8c4abee144e1d0f3c3b0c405a57667e17b7f12f0 (diff) | |
download | Doxygen-abe694b6304c1d62fdb9ad1caa85ec91efac31d6.zip Doxygen-abe694b6304c1d62fdb9ad1caa85ec91efac31d6.tar.gz Doxygen-abe694b6304c1d62fdb9ad1caa85ec91efac31d6.tar.bz2 |
testing: improve tests for \ref.
Tests for C++11 user-defined literals from
https://github.com/doxygen/doxygen/issues/6299 were missing, adding them
to avoid the regression re-appearing in the future.
Diffstat (limited to 'testing/074_ref.cpp')
-rw-r--r-- | testing/074_ref.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/074_ref.cpp b/testing/074_ref.cpp index 141e2b4..d283907 100644 --- a/testing/074_ref.cpp +++ b/testing/074_ref.cpp @@ -1,5 +1,9 @@ // objective: test \ref command in combination with const // check: struct_foo.xml +// check: namespacens.xml + +#include <initializer_list> + /** @brief Foo class. * * @see @ref Foo::Foo() constructor for details. @@ -47,3 +51,24 @@ struct Foo { /** @brief Fun with itself */ Foo fun() const; }; + +/** +@brief A namespace + +- Link to an UDL w/o spaces: @link operator""_op @endlink +- Link to an UDL with spaces: @link operator""_oq @endlink +- Link to a function with spaces: @ref foo(std::initializer_list< int* >) +- Link to a function w/o spaces: @ref foo(std::initializer_list<int*>) +*/ +namespace ns { + +/** @brief An operator */ +int operator""_op(unsigned long long); + +/** @brief Another operator */ +int operator "" _oq(unsigned long long); + +/** @brief Function */ +void foo(std::initializer_list<int*>); + +} |