tests: fill some missing docs, add one more fail-test
[gtk-doc.git] / tests / bugs / src / tester.h
blob488f4f3dc8a393bf5212215c47b21e1e60a1eedb
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:
120 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
122 typedef int
123 (*bug_512155a_function_pointer_t) (unsigned int arg1, unsigned int arg2,
124 unsigned int arg3);
127 * bug_512155b_function_pointer_t:
129 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
131 typedef
132 int (*bug_512155b_function_pointer_t) (unsigned int arg1, unsigned int arg2,
133 unsigned int arg3);
136 * bug_512155c_function_pointer_t:
138 * http://bugzilla.gnome.org/show_bug.cgi?id=512155
140 typedef int (*bug_512155c_function_pointer_t) (unsigned int arg1,
141 unsigned int arg2,
142 unsigned int arg3);
146 * BUG_530758:
148 * <![CDATA[http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1]]>
150 * <ulink url="http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1">Test</ulink>
152 #define BUG_530758 "dummy"
156 * bug_532395a:
157 * @number: a number
159 * http://bugzilla.gnome.org/show_bug.cgi?id=532395
161 * Returns: number
164 * bug_532395b:
166 * http://bugzilla.gnome.org/show_bug.cgi?id=532395
168 G_INLINE_FUNC guint
169 bug_532395a (gulong number)
171 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
172 return G_LIKELY (number) ?
173 ((GLIB_SIZEOF_LONG * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1;
174 #else
175 return 0;
176 #endif
178 G_INLINE_FUNC void
179 bug_532395b (void)
185 * bug_544172:
186 * @self: object pointer.
188 * http://bugzilla.gnome.org/show_bug.cgi?id=544172
190 * Returns: result or %NULL.
192 typedef char const * (*bug_544172) (char const *self);
196 * bug_554833:
197 * @i: value;
199 * http://bugzilla.gnome.org/show_bug.cgi?id=554833
201 struct _bug_554833 {
202 int i;
207 * bug_554833_new:
209 * http://bugzilla.gnome.org/show_bug.cgi?id=554833
211 * Returns: result
213 struct _bug_554833 *
214 bug_554833_new (void);
216 #define GTKDOC_GNUC_CONST
217 int bug_574654a(void) GTKDOC_GNUC_CONST;
218 void bug_574654b(double offset);
221 void bug_580300a_get_type(void);
222 void bug_580300b_get_type(gint a);
223 void bug_580300c_get_type();
224 extern int bug_580300d_get_type();
227 long int bug_602518a(void);
228 unsigned long int bug_602518b(void);
229 unsigned int bug_602518c(void);
232 * Bug165425a:
233 * @i: data as int
234 * @f: data as float
236 * http://bugzilla.gnome.org/show_bug.cgi?id=165425
238 union _Bug165425a {
239 int i;
240 float f;
242 typedef union _Bug165425a Bug165425a;
245 * Bug165425b:
246 * @i: data as int
247 * @f: data as float
249 * http://bugzilla.gnome.org/show_bug.cgi?id=165425
251 typedef union _Bug165425b {
252 int i;
253 float f;
254 } Bug165425b;
257 #endif // GTKDOC_TESTER_H