summaryrefslogtreecommitdiff
path: root/tests/generics/bug694765-3.c-expected
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-05-23 17:50:12 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-07-16 16:59:57 +0200
commit366590a71672106d8f8a820e79431df7f0c39337 (patch)
treeaf530265b03db60f5a9d5f39e7d9f4d098aa12f3 /tests/generics/bug694765-3.c-expected
parent7c4a957606f5a5b2afc8078228f228c8f87ccce5 (diff)
downloadvala-366590a71672106d8f8a820e79431df7f0c39337.tar.gz
tests: Add expected generated C sources
Diffstat (limited to 'tests/generics/bug694765-3.c-expected')
-rw-r--r--tests/generics/bug694765-3.c-expected56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/generics/bug694765-3.c-expected b/tests/generics/bug694765-3.c-expected
new file mode 100644
index 000000000..5dfd97d33
--- /dev/null
+++ b/tests/generics/bug694765-3.c-expected
@@ -0,0 +1,56 @@
+/* generics_bug694765_3.c generated by valac, the Vala compiler
+ * generated from generics_bug694765_3.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 void _g_free0_ (gpointer var);
+static inline void _g_list_free__g_free0_ (GList* self);
+static void __g_list_free__g_free0_0_ (gpointer var);
+
+static void
+_g_free0_ (gpointer var)
+{
+ var = (g_free (var), NULL);
+}
+
+static inline void
+_g_list_free__g_free0_ (GList* self)
+{
+ g_list_free_full (self, (GDestroyNotify) _g_free0_);
+}
+
+static void
+__g_list_free__g_free0_0_ (gpointer var)
+{
+ (var == NULL) ? NULL : (var = (_g_list_free__g_free0_ (var), NULL));
+}
+
+static void
+_vala_main (void)
+{
+ GHashTable* table = NULL;
+ GHashFunc _tmp0_;
+ GEqualFunc _tmp1_;
+ GHashTable* _tmp2_;
+ _tmp0_ = g_str_hash;
+ _tmp1_ = g_str_equal;
+ _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, __g_list_free__g_free0_0_);
+ table = _tmp2_;
+ _g_hash_table_unref0 (table);
+ table = NULL;
+ _g_hash_table_unref0 (table);
+}
+
+int
+main (int argc,
+ char ** argv)
+{
+ _vala_main ();
+ return 0;
+}
+