summaryrefslogtreecommitdiff
path: root/examples/relates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/relates.cpp')
-rw-r--r--examples/relates.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/relates.cpp b/examples/relates.cpp
new file mode 100644
index 0000000..c6f7dc9
--- /dev/null
+++ b/examples/relates.cpp
@@ -0,0 +1,23 @@
+/*!
+ * A String class.
+ */
+
+class String
+{
+ friend int strcmp(const String &,const String &);
+};
+
+/*!
+ * Compares two strings.
+ */
+
+int strcmp(const String &s1,const String &s2)
+{
+}
+
+/*! \relates String
+ * A string debug function.
+ */
+void stringDebug()
+{
+}