/* test.c generated by valac 0.37.2.1-9229-dirty, the Vala compiler
 * generated from test.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>

#define _g_free0(var) (var = (g_free (var), NULL))



gchar* s (GError** error);
void do_fail (const gchar* loc, ...);
void failing (void);


gchar* s (GError** error) {
	gchar* result = NULL;
	gchar* _tmp0_;
	_tmp0_ = g_strdup ("hello");
	result = _tmp0_;
	return result;
}


void do_fail (const gchar* loc, ...) {
	g_return_if_fail (loc != NULL);
}


void failing (void) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GError * _inner_error_ = NULL;
	_tmp1_ = s (&_inner_error_);
	_tmp0_ = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp2_ = _tmp0_;
	_tmp0_ = NULL;
	do_fail (_ (""), _tmp2_, NULL);
	_g_free0 (_tmp0_);
}



