/* error.c generated by valac 0.22.1, the Vala compiler
 * generated from error.vala, do not modify */

/*int[]? foo() {*/
/*int[] result = {1,2,3};*/
/*return result;*/
/*}*/

#include <glib.h>
#include <glib-object.h>




gint _vala_main (void);
static void _vala_array_add1 (gint* array, int* length, int* size, gint value);


static void _vala_array_add1 (gint* array, int* length, int* size, gint value) {
	if ((*length) == (*size)) {
		*size = (*size) ? (2 * (*size)) : 4;
		*array = g_renew (gint, *array, *size);
	}
	(*array)[(*length)++] = value;
}


gint _vala_main (void) {
	gint result = 0;
	gint vals[] = NULL;
	gint* _tmp0_ = NULL;
	gint vals_length1 = 0;
	gint _vals_size_ = 0;
	_tmp0_ = g_new0 (gint, 0);
	vals = _tmp0_;
	vals_length1 = 0;
	_vals_size_ = vals_length1;
	_vala_array_add1 (&vals, &vals_length1, &_vals_size_, 1);
	result = 0;
	vals = (g_free (vals), NULL);
	return result;
}


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


