mkdb: fix xml when using refsect2 in docblobs, Fixes #611848
[gtk-doc.git] / tests / bugs / src / tester.c
blob6a9e7683f35db3c5a3ec9d84b54a69d4c8c6d068
1 /**
2 * SECTION:tester
3 * @short_description: module for gtk-doc unit test
5 * This file contains non-sense code for the sole purpose of testing the docs.
7 * As described in http://bugzilla.gnome.org/show_bug.cgi?id=457077 it
8 * returns nothing.
10 * <refsect2 id="dummy-id">
11 * <para>
12 * Second paragraph inside subsection.
13 * </para>
14 * </refsect2>
17 #include <glib.h>
19 #include "tester.h"
21 /**
22 * bug_141869_a:
23 * @pid: arg
25 * http://bugzilla.gnome.org/show_bug.cgi?id=141869
27 void bug_141869_a (unsigned pid) {
30 /**
31 * bug_141869_b:
32 * @pid: arg
34 * http://bugzilla.gnome.org/show_bug.cgi?id=141869
36 void bug_141869_b (signed pid) {
40 /**
41 * bug_379466:
42 * @pid: arg
44 * http://bugzilla.gnome.org/show_bug.cgi?id=379466
46 void bug_379466 (int
47 pid) {
51 /**
52 * bug_380824:
53 * @arg: arg
55 * Returns a value.
56 * http://bugzilla.gnome.org/show_bug.cgi?id=380824
58 * Since: 0.1
60 * Returns: result
62 int bug_380824 (int arg) {
63 return 0;
67 /**
68 * bug_411739:
70 * http://bugzilla.gnome.org/show_bug.cgi?id=411739
72 * Returns: result
74 struct bug *
75 bug_411739 (void) {
76 return NULL;
80 /**
81 * bug_419997:
82 * @const_values: arg
84 * http://bugzilla.gnome.org/show_bug.cgi?id=419997
86 void bug_419997 (int const_values) {
90 /**
91 * bug_445693:
92 * @pid: arg
94 * http://bugzilla.gnome.org/show_bug.cgi?id=445693
96 void bug_445693 (unsigned long pid) {
101 * bug_471014:
103 * http://bugzilla.gnome.org/show_bug.cgi?id=471014
105 * Returns: result
107 G_CONST_RETURN gchar* G_CONST_RETURN * bug_471014 (void) {
108 return NULL;
113 * Bug446648:
114 * @BUG_446648_FOO: foo
116 * http://bugzilla.gnome.org/show_bug.cgi?id=446648
121 * bug_552602:
123 * http://bugzilla.gnome.org/show_bug.cgi?id=552602
125 * Returns: result
127 const char* const * bug_552602 (void) {
128 return NULL;
132 * bug_574654a:
134 * http://bugzilla.gnome.org/show_bug.cgi?id=574654
136 * Returns: result
139 * bug_574654b:
140 * @offset: skip this many items
142 * http://bugzilla.gnome.org/show_bug.cgi?id=574654
144 int bug_574654a(void) {
145 return 0;
148 void bug_574654b(double offset) { }
152 * bug_580300a_get_type:
154 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
156 void bug_580300a_get_type(void) { }
159 * bug_580300b_get_type:
160 * @a: value
162 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
164 void bug_580300b_get_type(gint a) { }
167 * bug_580300c_get_type:
169 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
171 void bug_580300c_get_type() { }
174 * bug_580300d_get_type:
176 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
178 * Returns: result
180 int bug_580300d_get_type() { }
184 * bug_602518a:
186 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
188 * Returns: result
190 long int bug_602518a(void) {
191 return (long int)0;
195 * bug_602518b:
197 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
199 * Returns: result
201 unsigned long int bug_602518b(void) {
202 return (unsigned long int)0;
206 * bug_602518c:
208 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
210 * Returns: result
212 unsigned int bug_602518c(void) {
213 return (unsigned int)0;
217 * bug_607445:
218 * @a: parameter
219 * @n: parameter
221 * http://bugzilla.gnome.org/show_bug.cgi?id=607445
223 long double bug_607445(long double **a, int n) {
224 return 2.0*n;
228 * bug_610257:
229 * @der: parameter
230 * @len: parameter
232 * http://bugzilla.gnome.org/show_bug.cgi?id=610257
234 signed long
235 bug_610257 (const unsigned char *der, int *len)
237 return 1L;