[gtk-doc] tests: Add a test case for functions having a rename-to annotation



commit d4cf2dc5f194de7296950af375de1048a9c1cd3b
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Thu Dec 5 15:15:59 2013 +0100

    tests: Add a test case for functions having a rename-to annotation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710478

 tests/annotations/docs/tester-sections.txt |    1 +
 tests/annotations/src/tester.c             |   10 ++++++++++
 tests/annotations/src/tester.h             |    2 ++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/annotations/docs/tester-sections.txt b/tests/annotations/docs/tester-sections.txt
index 30d9282..59fef69 100644
--- a/tests/annotations/docs/tester-sections.txt
+++ b/tests/annotations/docs/tester-sections.txt
@@ -11,6 +11,7 @@ annotation_outparams
 annotation_skip
 annotation_skip_return
 annotation_scope
+annotation_rename_to
 <SUBSECTION Standard>
 <SUBSECTION Private>
 </SECTION>
diff --git a/tests/annotations/src/tester.c b/tests/annotations/src/tester.c
index 88fe705..09f103a 100644
--- a/tests/annotations/src/tester.c
+++ b/tests/annotations/src/tester.c
@@ -135,3 +135,13 @@ void
 annotation_scope (GCallback *callback, gpointer user_data)
 {
 }
+
+/**
+ * annotation_rename_to: (rename-to annotation_scope)
+ *
+ * Documentation for this function.
+ */
+void
+annotation_rename_to (void)
+{
+}
diff --git a/tests/annotations/src/tester.h b/tests/annotations/src/tester.h
index f2ad034..3baf440 100644
--- a/tests/annotations/src/tester.h
+++ b/tests/annotations/src/tester.h
@@ -29,5 +29,7 @@ extern gboolean annotation_skip_return (GList *list);
 
 extern void annotation_scope (GCallback *callback, gpointer user_data);
 
+extern void annotation_rename_to (void);
+
 #endif // GTKDOC_TESTER_H
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]