summaryrefslogtreecommitdiffstats
path: root/testing/074_ref.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-21 19:44:21 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-21 19:44:21 (GMT)
commit2b4257860046b3863b7c478d7f6ad5bdfcab757b (patch)
tree677c5d3e5c124fe419d12ca8eb38f997e3fac3d4 /testing/074_ref.cpp
parente8b9cfaaadf62c115cf253d417dd1bdee38e77db (diff)
downloadDoxygen-2b4257860046b3863b7c478d7f6ad5bdfcab757b.zip
Doxygen-2b4257860046b3863b7c478d7f6ad5bdfcab757b.tar.gz
Doxygen-2b4257860046b3863b7c478d7f6ad5bdfcab757b.tar.bz2
Added test case for \ref, and fixed representation of operator->*()
Diffstat (limited to 'testing/074_ref.cpp')
-rw-r--r--testing/074_ref.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/074_ref.cpp b/testing/074_ref.cpp
new file mode 100644
index 0000000..141e2b4
--- /dev/null
+++ b/testing/074_ref.cpp
@@ -0,0 +1,49 @@
+// objective: test \ref command in combination with const
+// check: struct_foo.xml
+/** @brief Foo class.
+ *
+ * @see @ref Foo::Foo() constructor for details.
+ * @see @ref Foo constant.
+ * @see @ref operator<<(int) "less than operator".
+ * @see @ref operator<<(int) const "const less than operator".
+ * @see @ref operator()(int) "call operator".
+ * @see @ref operator()(int) const "const call operator".
+ * @see @ref operator&=(const Foo&) "and equal operator".
+ * @see @ref operator->*(int *) "member pointer operator".
+ */
+struct Foo {
+ /** Constructor */
+ Foo();
+ /**
+ * @brief Fun of two
+ *
+ * - fun() const
+ * - @ref fun() const
+ * - @ref fun() const "title"
+ */
+ static Foo fun(Foo a, Foo b);
+
+ /** overloaded less than operator */
+ Foo& operator<< (int i);
+
+ /** overloaded const less than operator */
+ const Foo& operator<< (int i) const;
+
+ /** overloaded call operator */
+ int operator()(int i);
+
+ /** overloaded call operator */
+ int operator()(int i) const;
+
+ /** and equal operator */
+ Foo& operator&=(const Foo& rhs);
+
+ /** and equal operator */
+ Foo& operator&=(const Foo& rhs);
+
+ /** Member pointer operator */
+ int* operator->*(int *p);
+
+ /** @brief Fun with itself */
+ Foo fun() const;
+};