]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/docca/example/include/docca/issue_48.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / tools / docca / example / include / docca / issue_48.hpp
diff --git a/ceph/src/boost/tools/docca/example/include/docca/issue_48.hpp b/ceph/src/boost/tools/docca/example/include/docca/issue_48.hpp
new file mode 100644 (file)
index 0000000..9f0b9ea
--- /dev/null
@@ -0,0 +1,47 @@
+//
+// Copyright (c) 2020 Krystian Stasiowski (sdkrystian@gmail.com)
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+
+#ifndef EXAMPLE_ISSUE_48_HPP
+#define EXAMPLE_ISSUE_48_HPP
+
+namespace example {
+
+class X
+{
+};
+
+struct Y
+{
+};
+
+/** Issue 48
+
+    The class should show one regular
+    public member function and two friend
+    functions.
+*/
+class issue_48
+{
+    /// This should not be emitted.
+    friend class X;
+
+    /// This should not be emitted.
+    friend struct Y;
+
+    /// This should be emitted
+    friend void g( issue_48 );
+
+public:
+    void f();
+
+    /// This should be emitted
+    friend void h( issue_48 );
+};
+
+} // example
+
+#endif