summaryrefslogtreecommitdiff
path: root/tests/objects/generics.c-expected
blob: 09b90174acfd7fe1fb9f84fdd8d5b1e57b32b733 (plain)
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
/* objects_generics.c generated by valac, the Vala compiler
 * generated from objects_generics.vala, do not modify */

#include <glib.h>
#include <stdlib.h>
#include <string.h>

#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

static void _vala_main (void);

static gpointer
_g_hash_table_ref0 (gpointer self)
{
	return self ? g_hash_table_ref (self) : NULL;
}

static void
_vala_main (void)
{
	GHashTable* h = NULL;
	GHashTable* _tmp0_;
	_tmp0_ = _g_hash_table_ref0 ((GHashTable*) NULL);
	h = _tmp0_;
	_g_hash_table_unref0 (h);
}

int
main (int argc,
      char ** argv)
{
	_vala_main ();
	return 0;
}