summaryrefslogtreecommitdiff
path: root/tests/methods/closures.c-expected
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-01-03 13:59:36 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2022-01-03 13:59:36 +0100
commit9adade648eacc354cc6f4cf55f00e537a58d136f (patch)
treec4f919f7fda8250a3151b781707cf156260452b0 /tests/methods/closures.c-expected
parent29470dbcfc149d241886dcecb7fd6f4207dc7917 (diff)
downloadvala-9adade648eacc354cc6f4cf55f00e537a58d136f.tar.gz
codegen: Initialize "result" variable on declaration for abstract methods only
Diffstat (limited to 'tests/methods/closures.c-expected')
-rw-r--r--tests/methods/closures.c-expected18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/methods/closures.c-expected b/tests/methods/closures.c-expected
index 22c5f2c97..04d0bc022 100644
--- a/tests/methods/closures.c-expected
+++ b/tests/methods/closures.c-expected
@@ -159,7 +159,7 @@ static gboolean
__lambda4_ (Block1Data* _data1_)
{
Foo* self;
- gboolean result = FALSE;
+ gboolean result;
self = _data1_->self;
_g_object_unref0 (_data1_->o);
_data1_->o = NULL;
@@ -291,7 +291,7 @@ __lambda5_ (Block2Data* _data2_)
{
Func _tmp0_;
gpointer _tmp0__target;
- gint result = 0;
+ gint result;
_data2_->k = _data2_->k - 1;
_tmp0_ = _data2_->B;
_tmp0__target = _data2_->B_target;
@@ -322,7 +322,7 @@ A (gint k,
{
Block2Data* _data2_;
gint _tmp0_ = 0;
- gint result = 0;
+ gint result;
_data2_ = g_slice_new0 (Block2Data);
_data2_->_ref_count_ = 1;
_data2_->k = k;
@@ -379,7 +379,7 @@ block3_data_unref (void * _userdata_)
static gint
__lambda6_ (Block3Data* _data3_)
{
- gint result = 0;
+ gint result;
_data3_->array = NULL;
_data3_->func ();
result = 0;
@@ -420,7 +420,7 @@ B (gint* array,
static gint
__lambda7_ (void)
{
- gint result = 0;
+ gint result;
result = 1;
return result;
}
@@ -436,7 +436,7 @@ ___lambda7__func (gpointer self)
static gint
__lambda8_ (void)
{
- gint result = 0;
+ gint result;
result = -1;
return result;
}
@@ -452,7 +452,7 @@ ___lambda8__func (gpointer self)
static gint
__lambda9_ (void)
{
- gint result = 0;
+ gint result;
result = -1;
return result;
}
@@ -468,7 +468,7 @@ ___lambda9__func (gpointer self)
static gint
__lambda10_ (void)
{
- gint result = 0;
+ gint result;
result = 1;
return result;
}
@@ -484,7 +484,7 @@ ___lambda10__func (gpointer self)
static gint
__lambda11_ (void)
{
- gint result = 0;
+ gint result;
result = 0;
return result;
}