tests: new test for bug #623968
[gtk-doc.git] / tests / bugs / src / tester.h
blobff6963c2c4566d56a3a14f7f410f9210c3eb3adf
1 #ifndef GTKDOC_TESTER_H
2 #define GTKDOC_TESTER_H
4 #include <glib.h>
6 /**
7 * Bug324535:
8 * @BUG_324535_A: enum 1
9 * @BUG_324535_B: enum 2
10 * @BUG_324535_C: enum 3
12 * http://bugzilla.gnome.org/show_bug.cgi?id=324535
14 typedef enum {
15 BUG_324535_A,
16 #ifdef GTK_DISABLE_DEPRECATED
17 BUG_324535_B,
18 #endif
19 BUG_324535_C
20 } Bug324535;
23 /**
24 * bug_501038:
25 * @a: value
26 * @b: deprecated value
27 * @_b: scrambled deprecated value
29 * http://bugzilla.gnome.org/show_bug.cgi?id=501038
31 struct _bug_501038 {
32 gint a;
33 #ifndef GTK_DISABLE_DEPRECATED
34 gint b;
35 #else
36 gint _b;
37 #endif
41 #define _PADDDING 4
42 /**
43 * bug_460127:
44 * @a: field
46 * http://bugzilla.gnome.org/show_bug.cgi?id=460127
48 struct _bug_460127 {
49 /*< public >*/
50 gint a;
52 /*< private >*/
53 union {
54 struct {
55 gint b;
56 } ABI;
57 gpointer _reserved[_PADDDING + 0];
58 } abidata;
62 /**
63 * bug_477532:
65 * http://bugzilla.gnome.org/show_bug.cgi?id=477532
67 GLIB_VAR guint64 (*bug_477532) (void);
70 struct bug {
71 int test;
75 void bug_141869_a (unsigned pid);
76 void bug_141869_b (signed pid);
78 void bug_379466 (int
79 pid);
81 int bug_380824 (int arg);
83 struct bug *
84 bug_411739 (void);
86 void bug_419997 (int const_values);
88 void bug_445693 (unsigned long pid);
90 G_CONST_RETURN gchar* G_CONST_RETURN *
91 bug_471014 (void);
93 const char* const * bug_552602 (void);
95 /**
96 * Bug446648:
97 * @BUG_446648_FOO: field
99 * http://bugzilla.gnome.org/show_bug.cgi?id=446648
101 typedef enum _Bug446648 Bug446648;
102 enum _Bug446648 {
103 BUG_446648_FOO
107 * Bug512154:
108 * @index: field
110 * http://bugzilla.gnome.org/show_bug.cgi?id=512154
112 typedef struct {
113 unsigned long index;
114 } Bug512154;
118 * bug_512155a_function_pointer_t:
119 * @arg1: param 1
120 * @arg2: param 1
121 * @arg3: param 1
123 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
125 typedef int
126 (*bug_512155a_function_pointer_t) (unsigned int arg1, unsigned int arg2,
127 unsigned int arg3);
130 * bug_512155b_function_pointer_t:
131 * @arg1: param 1
132 * @arg2: param 1
133 * @arg3: param 1
135 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
137 typedef
138 int (*bug_512155b_function_pointer_t) (unsigned int arg1, unsigned int arg2,
139 unsigned int arg3);
142 * bug_512155c_function_pointer_t:
143 * @arg1: param 1
144 * @arg2: param 1
145 * @arg3: param 1
147 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
149 typedef int (*bug_512155c_function_pointer_t) (unsigned int arg1,
150 unsigned int arg2,
151 unsigned int arg3);
155 * BUG_530758:
157 * <![CDATA[http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1]]>
159 * <ulink url="http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1">Test</ulink>
161 #define BUG_530758 "dummy"
165 * bug_532395a:
166 * @number: a number
168 * http://bugzilla.gnome.org/show_bug.cgi?id=532395
170 * Returns: number
173 * bug_532395b:
175 * http://bugzilla.gnome.org/show_bug.cgi?id=532395
177 G_INLINE_FUNC guint
178 bug_532395a (gulong number)
180 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
181 return G_LIKELY (number) ?
182 ((GLIB_SIZEOF_LONG * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1;
183 #else
184 return 0;
185 #endif
187 G_INLINE_FUNC void
188 bug_532395b (void)
194 * bug_544172:
195 * @self: object pointer.
197 * http://bugzilla.gnome.org/show_bug.cgi?id=544172
199 * Returns: result or %NULL.
201 typedef char const * (*bug_544172) (char const *self);
205 * bug_554833:
206 * @i: value;
208 * http://bugzilla.gnome.org/show_bug.cgi?id=554833
210 struct _bug_554833 {
211 int i;
216 * bug_554833_new:
218 * http://bugzilla.gnome.org/show_bug.cgi?id=554833
220 * Returns: result
222 struct _bug_554833 *
223 bug_554833_new (void);
226 #define GTKDOC_GNUC_CONST
227 int bug_574654a(void) GTKDOC_GNUC_CONST;
228 void bug_574654b(double offset);
231 void bug_580300a_get_type(void);
232 void bug_580300b_get_type(gint a);
233 void bug_580300c_get_type();
234 extern int bug_580300d_get_type();
237 long int bug_602518a(void);
238 unsigned long int bug_602518b(void);
239 unsigned int bug_602518c(void);
242 * Bug165425a:
243 * @i: data as int
244 * @f: data as float
246 * http://bugzilla.gnome.org/show_bug.cgi?id=165425
248 union _Bug165425a {
249 int i;
250 float f;
252 typedef union _Bug165425a Bug165425a;
255 * Bug165425b:
256 * @i: data as int
257 * @f: data as float
259 * http://bugzilla.gnome.org/show_bug.cgi?id=165425
261 typedef union _Bug165425b {
262 int i;
263 float f;
264 } Bug165425b;
268 * BugXXX1b:
269 * @a: field
271 * No bug report
273 typedef struct _BugXXX1b BugXXX1b;
274 struct _BugXXX1b {
275 *//*< protected >*//*
276 gint a;
278 *//*< private >*//*
279 gint b;
283 long double bug_607445(long double **a, int n);
286 signed long bug_610257(const unsigned char *der, int *len);
289 void bug_623968a(void);
291 #endif // GTKDOC_TESTER_H