GCC Code Coverage Report


Directory: ./
File: _build/tests/interactive-panels/test-panels-resources.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 8 0.0%
Functions: 0 3 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <gio/gio.h>
2
3 #if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
4 # define SECTION __attribute__ ((section (".gresource.test_panels"), aligned (sizeof(void *) > 8 ? sizeof(void *) : 8)))
5 #else
6 # define SECTION
7 #endif
8
9 static const SECTION union { const guint8 data[1812]; const double alignment; void * const ptr;} test_panels_resource_data = {
10 "\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000"
11 "\030\000\000\000\000\001\000\000\000\000\000\050\010\000\000\000"
12 "\000\000\000\000\003\000\000\000\003\000\000\000\004\000\000\000"
13 "\005\000\000\000\006\000\000\000\006\000\000\000\007\000\000\000"
14 "\060\032\212\356\006\000\000\000\000\001\000\000\006\000\114\000"
15 "\010\001\000\000\014\001\000\000\260\267\044\060\004\000\000\000"
16 "\014\001\000\000\006\000\114\000\024\001\000\000\030\001\000\000"
17 "\250\361\226\335\003\000\000\000\030\001\000\000\024\000\166\000"
18 "\060\001\000\000\266\004\000\000\302\201\377\202\000\000\000\000"
19 "\266\004\000\000\007\000\114\000\300\004\000\000\310\004\000\000"
20 "\113\120\220\013\005\000\000\000\310\004\000\000\004\000\114\000"
21 "\314\004\000\000\320\004\000\000\324\265\002\000\377\377\377\377"
22 "\320\004\000\000\001\000\114\000\324\004\000\000\330\004\000\000"
23 "\316\327\054\215\001\000\000\000\330\004\000\000\017\000\114\000"
24 "\350\004\000\000\354\004\000\000\057\166\111\266\003\000\000\000"
25 "\354\004\000\000\022\000\166\000\000\005\000\000\023\007\000\000"
26 "\164\145\163\164\163\057\000\000\003\000\000\000\147\156\157\155"
27 "\145\057\000\000\006\000\000\000\147\164\160\055\144\171\156\141"
28 "\155\151\143\055\160\141\156\145\154\056\165\151\000\000\000\000"
29 "\166\003\000\000\000\000\000\000\074\077\170\155\154\040\166\145"
30 "\162\163\151\157\156\075\042\061\056\060\042\040\145\156\143\157"
31 "\144\151\156\147\075\042\125\124\106\055\070\042\077\076\012\074"
32 "\151\156\164\145\162\146\141\143\145\076\074\162\145\161\165\151"
33 "\162\145\163\040\154\151\142\075\042\147\164\153\053\042\040\166"
34 "\145\162\163\151\157\156\075\042\063\056\062\062\042\057\076\074"
35 "\164\145\155\160\154\141\164\145\040\143\154\141\163\163\075\042"
36 "\107\164\160\104\171\156\141\155\151\143\120\141\156\145\154\042"
37 "\040\160\141\162\145\156\164\075\042\103\143\120\141\156\145\154"
38 "\042\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145"
39 "\075\042\143\150\151\154\144\042\076\074\157\142\152\145\143\164"
40 "\040\143\154\141\163\163\075\042\101\144\167\124\157\157\154\142"
41 "\141\162\126\151\145\167\042\076\074\143\150\151\154\144\040\164"
42 "\171\160\145\075\042\164\157\160\042\076\074\157\142\152\145\143"
43 "\164\040\143\154\141\163\163\075\042\101\144\167\110\145\141\144"
44 "\145\162\102\141\162\042\057\076\074\057\143\150\151\154\144\076"
45 "\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042"
46 "\143\157\156\164\145\156\164\042\076\074\157\142\152\145\143\164"
47 "\040\143\154\141\163\163\075\042\101\144\167\123\164\141\164\165"
48 "\163\120\141\147\145\042\076\074\160\162\157\160\145\162\164\171"
49 "\040\156\141\155\145\075\042\151\143\157\156\055\156\141\155\145"
50 "\042\076\167\145\141\164\150\145\162\055\143\154\145\141\162\055"
51 "\156\151\147\150\164\055\163\171\155\142\157\154\151\143\074\057"
52 "\160\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162"
53 "\164\171\040\156\141\155\145\075\042\164\151\164\154\145\042\076"
54 "\104\171\156\141\155\151\143\040\120\141\156\145\154\074\057\160"
55 "\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164"
56 "\171\040\156\141\155\145\075\042\144\145\163\143\162\151\160\164"
57 "\151\157\156\042\076\104\171\156\141\155\151\143\040\160\141\156"
58 "\145\154\163\040\155\141\171\040\150\151\144\145\040\151\146\040"
59 "\171\157\165\040\144\157\156\047\164\040\150\141\166\145\040\163"
60 "\157\155\145\040\150\141\162\144\167\141\162\145\056\040\125\163"
61 "\145\040\164\150\145\040\142\165\164\164\157\156\040\142\145\154"
62 "\157\167\040\164\157\040\164\157\147\147\154\145\040\164\150\145"
63 "\040\160\141\156\145\154\040\166\151\163\151\142\151\154\151\164"
64 "\171\072\074\057\160\162\157\160\145\162\164\171\076\074\143\150"
65 "\151\154\144\076\074\157\142\152\145\143\164\040\143\154\141\163"
66 "\163\075\042\107\164\153\102\165\164\164\157\156\042\076\074\160"
67 "\162\157\160\145\162\164\171\040\156\141\155\145\075\042\150\141"
68 "\154\151\147\156\042\076\143\145\156\164\145\162\074\057\160\162"
69 "\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171"
70 "\040\156\141\155\145\075\042\154\141\142\145\154\042\076\110\151"
71 "\144\145\074\057\160\162\157\160\145\162\164\171\076\074\163\151"
72 "\147\156\141\154\040\156\141\155\145\075\042\143\154\151\143\153"
73 "\145\144\042\040\150\141\156\144\154\145\162\075\042\157\156\137"
74 "\142\165\164\164\157\156\137\143\154\151\143\153\145\144\137\143"
75 "\142\042\040\157\142\152\145\143\164\075\042\107\164\160\104\171"
76 "\156\141\155\151\143\120\141\156\145\154\042\040\163\167\141\160"
77 "\160\145\144\075\042\156\157\042\057\076\074\163\164\171\154\145"
78 "\076\074\143\154\141\163\163\040\156\141\155\145\075\042\160\151"
79 "\154\154\042\057\076\074\057\163\164\171\154\145\076\074\057\157"
80 "\142\152\145\143\164\076\074\057\143\150\151\154\144\076\074\057"
81 "\157\142\152\145\143\164\076\074\057\160\162\157\160\145\162\164"
82 "\171\076\074\057\157\142\152\145\143\164\076\074\057\160\162\157"
83 "\160\145\162\164\171\076\074\057\164\145\155\160\154\141\164\145"
84 "\076\074\057\151\156\164\145\162\146\141\143\145\076\012\000\000"
85 "\050\165\165\141\171\051\160\141\156\145\154\163\057\000\000\000"
86 "\002\000\000\000\007\000\000\000\157\162\147\057\001\000\000\000"
87 "\057\000\000\000\004\000\000\000\143\157\156\164\162\157\154\055"
88 "\143\145\156\164\145\162\057\000\000\000\000\000\147\164\160\055"
89 "\163\164\141\164\151\143\055\151\156\151\164\056\165\151\000\000"
90 "\003\002\000\000\000\000\000\000\074\077\170\155\154\040\166\145"
91 "\162\163\151\157\156\075\042\061\056\060\042\040\145\156\143\157"
92 "\144\151\156\147\075\042\125\124\106\055\070\042\077\076\012\074"
93 "\151\156\164\145\162\146\141\143\145\076\074\164\145\155\160\154"
94 "\141\164\145\040\143\154\141\163\163\075\042\107\164\160\123\164"
95 "\141\164\151\143\111\156\151\164\042\040\160\141\162\145\156\164"
96 "\075\042\103\143\120\141\156\145\154\042\076\074\160\162\157\160"
97 "\145\162\164\171\040\156\141\155\145\075\042\143\150\151\154\144"
98 "\042\076\074\157\142\152\145\143\164\040\143\154\141\163\163\075"
99 "\042\101\144\167\124\157\157\154\142\141\162\126\151\145\167\042"
100 "\076\074\143\150\151\154\144\040\164\171\160\145\075\042\164\157"
101 "\160\042\076\074\157\142\152\145\143\164\040\143\154\141\163\163"
102 "\075\042\101\144\167\110\145\141\144\145\162\102\141\162\042\057"
103 "\076\074\057\143\150\151\154\144\076\074\160\162\157\160\145\162"
104 "\164\171\040\156\141\155\145\075\042\143\157\156\164\145\156\164"
105 "\042\076\074\157\142\152\145\143\164\040\143\154\141\163\163\075"
106 "\042\101\144\167\123\164\141\164\165\163\120\141\147\145\042\076"
107 "\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042"
108 "\151\143\157\156\137\156\141\155\145\042\076\166\151\145\167\055"
109 "\143\157\156\164\151\156\165\157\165\163\055\163\171\155\142\157"
110 "\154\151\143\074\057\160\162\157\160\145\162\164\171\076\074\160"
111 "\162\157\160\145\162\164\171\040\156\141\155\145\075\042\164\151"
112 "\164\154\145\042\076\123\164\141\164\151\143\040\111\156\151\164"
113 "\151\141\154\151\172\145\162\074\057\160\162\157\160\145\162\164"
114 "\171\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145"
115 "\075\042\144\145\163\143\162\151\160\164\151\157\156\042\076\101"
116 "\040\160\141\156\145\154\040\167\151\164\150\040\141\040\163\164"
117 "\141\164\151\143\040\151\156\151\164\151\141\154\151\172\145\162"
118 "\074\057\160\162\157\160\145\162\164\171\076\074\057\157\142\152"
119 "\145\143\164\076\074\057\160\162\157\160\145\162\164\171\076\074"
120 "\057\157\142\152\145\143\164\076\074\057\160\162\157\160\145\162"
121 "\164\171\076\074\057\164\145\155\160\154\141\164\145\076\074\057"
122 "\151\156\164\145\162\146\141\143\145\076\012\000\000\050\165\165"
123 "\141\171\051" };
124
125 static GStaticResource static_resource = { test_panels_resource_data.data, sizeof (test_panels_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL };
126
127 G_MODULE_EXPORT
128 GResource *test_panels_get_resource (void);
129 GResource *test_panels_get_resource (void)
130 {
131 return g_static_resource_get_resource (&static_resource);
132 }
133 /* GLIB - Library of useful routines for C programming
134 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
135 *
136 * SPDX-License-Identifier: LGPL-2.1-or-later
137 *
138 * This library is free software; you can redistribute it and/or
139 * modify it under the terms of the GNU Lesser General Public
140 * License as published by the Free Software Foundation; either
141 * version 2.1 of the License, or (at your option) any later version.
142 *
143 * This library is distributed in the hope that it will be useful,
144 * but WITHOUT ANY WARRANTY; without even the implied warranty of
145 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
146 * Lesser General Public License for more details.
147 *
148 * You should have received a copy of the GNU Lesser General Public
149 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
150 */
151
152 /*
153 * Modified by the GLib Team and others 1997-2000. See the AUTHORS
154 * file for a list of people on the GLib Team. See the ChangeLog
155 * files for a list of changes. These files are distributed with
156 * GLib at ftp://ftp.gtk.org/pub/gtk/.
157 */
158
159 #ifndef __G_CONSTRUCTOR_H__
160 #define __G_CONSTRUCTOR_H__
161
162 /*
163 If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and
164 destructors, in a usable way, including e.g. on library unload. If not you're on
165 your own.
166
167 Some compilers need #pragma to handle this, which does not work with macros,
168 so the way you need to use this is (for constructors):
169
170 #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
171 #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)
172 #endif
173 G_DEFINE_CONSTRUCTOR(my_constructor)
174 static void my_constructor(void) {
175 ...
176 }
177
178 */
179
180 #ifndef __GTK_DOC_IGNORE__
181
182 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
183
184 #define G_HAS_CONSTRUCTORS 1
185
186 #define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
187 #define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);
188
189 #elif defined (_MSC_VER)
190
191 /*
192 * Only try to include gslist.h if not already included via glib.h,
193 * so that items using gconstructor.h outside of GLib (such as
194 * GResources) continue to build properly.
195 */
196 #ifndef __G_LIB_H__
197 #include "gslist.h"
198 #endif
199
200 #include <stdlib.h>
201
202 #define G_HAS_CONSTRUCTORS 1
203
204 /* We do some weird things to avoid the constructors being optimized
205 * away on VS2015 if WholeProgramOptimization is enabled. First we
206 * make a reference to the array from the wrapper to make sure its
207 * references. Then we use a pragma to make sure the wrapper function
208 * symbol is always included at the link stage. Also, the symbols
209 * need to be extern (but not dllexport), even though they are not
210 * really used from another object file.
211 */
212
213 /* We need to account for differences between the mangling of symbols
214 * for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed
215 * with an underscore but symbols on x64/ARM/ARM64 are not.
216 */
217 #ifdef _M_IX86
218 #define G_MSVC_SYMBOL_PREFIX "_"
219 #else
220 #define G_MSVC_SYMBOL_PREFIX ""
221 #endif
222
223 #define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)
224 #define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX)
225
226 #define G_MSVC_CTOR(_func,_sym_prefix) \
227 static void _func(void); \
228 extern int (* _array ## _func)(void); \
229 int _func ## _wrapper(void); \
230 int _func ## _wrapper(void) { _func(); g_slist_find (NULL, _array ## _func); return 0; } \
231 __pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \
232 __pragma(section(".CRT$XCU",read)) \
233 __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper;
234
235 #define G_MSVC_DTOR(_func,_sym_prefix) \
236 static void _func(void); \
237 extern int (* _array ## _func)(void); \
238 int _func ## _constructor(void); \
239 int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0; } \
240 __pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \
241 __pragma(section(".CRT$XCU",read)) \
242 __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor;
243
244 #elif defined(__SUNPRO_C)
245
246 /* This is not tested, but i believe it should work, based on:
247 * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c
248 */
249
250 #define G_HAS_CONSTRUCTORS 1
251
252 #define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1
253 #define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1
254
255 #define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \
256 init(_func)
257 #define G_DEFINE_CONSTRUCTOR(_func) \
258 static void _func(void);
259
260 #define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \
261 fini(_func)
262 #define G_DEFINE_DESTRUCTOR(_func) \
263 static void _func(void);
264
265 #else
266
267 /* constructors not supported for this compiler */
268
269 #endif
270
271 #endif /* __GTK_DOC_IGNORE__ */
272 #endif /* __G_CONSTRUCTOR_H__ */
273
274 #ifdef G_HAS_CONSTRUCTORS
275
276 #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
277 #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(test_panelsresource_constructor)
278 #endif
279 G_DEFINE_CONSTRUCTOR(test_panelsresource_constructor)
280 #ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA
281 #pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(test_panelsresource_destructor)
282 #endif
283 G_DEFINE_DESTRUCTOR(test_panelsresource_destructor)
284
285 #else
286 #warning "Constructor not supported on this compiler, linking in resources will not work"
287 #endif
288
289 static void test_panelsresource_constructor (void)
290 {
291 g_static_resource_init (&static_resource);
292 }
293
294 static void test_panelsresource_destructor (void)
295 {
296 g_static_resource_fini (&static_resource);
297 }
298