1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/* structs_bug658048.c generated by valac, the Vala compiler
* generated from structs_bug658048.vala, do not modify */
#include <glib-object.h>
#include <glib.h>
#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
static void _vala_main (void);
static gboolean _g_value_equal (const GValue * s1,
const GValue * s2);
static gboolean
_g_value_equal (const GValue * s1,
const GValue * s2)
{
if (s1 == s2) {
return TRUE;
}
if (s1 == NULL) {
return FALSE;
}
if (s2 == NULL) {
return FALSE;
}
return FALSE;
}
static void
_vala_main (void)
{
GValue a = {0};
GValue _tmp0_ = {0};
gboolean res = FALSE;
GValue _tmp1_;
GValue _tmp2_;
g_value_init (&_tmp0_, G_TYPE_INT);
g_value_set_int (&_tmp0_, 10);
a = _tmp0_;
_tmp1_ = a;
_tmp2_ = a;
res = _g_value_equal (&_tmp1_, &_tmp2_) == TRUE;
G_IS_VALUE (&a) ? (g_value_unset (&a), NULL) : NULL;
}
int
main (int argc,
char ** argv)
{
_vala_main ();
return 0;
}
|