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

#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

typedef void (*Foo) (gpointer user_data);

VALA_EXTERN void do_foo (Foo foo,
             gpointer foo_target,
             GDestroyNotify foo_target_destroy_notify);
static void _vala_main (void);

void
do_foo (Foo foo,
        gpointer foo_target,
        GDestroyNotify foo_target_destroy_notify)
{
	Foo bar = NULL;
	Foo _tmp0_;
	gpointer _tmp0__target;
	GDestroyNotify _tmp0__target_destroy_notify;
	gpointer bar_target;
	GDestroyNotify bar_target_destroy_notify;
	_tmp0_ = foo;
	_tmp0__target = foo_target;
	_tmp0__target_destroy_notify = foo_target_destroy_notify;
	foo = NULL;
	foo_target = NULL;
	foo_target_destroy_notify = NULL;
	bar = _tmp0_;
	bar_target = _tmp0__target;
	bar_target_destroy_notify = _tmp0__target_destroy_notify;
	(bar_target_destroy_notify == NULL) ? NULL : (bar_target_destroy_notify (bar_target), NULL);
	bar = NULL;
	bar_target = NULL;
	bar_target_destroy_notify = NULL;
	(foo_target_destroy_notify == NULL) ? NULL : (foo_target_destroy_notify (foo_target), NULL);
	foo = NULL;
	foo_target = NULL;
	foo_target_destroy_notify = NULL;
}

static void
_vala_main (void)
{
}

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

