diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index dec0438..04b5525 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -4486,6 +4486,14 @@ gi_marshalling_tests_param_spec_out(GParamSpec **param)
   *param = g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
 }
 
+/**
+ * gi_marshalling_tests_param_spec_take_param:
+ * @param: a #GParamSpec
+ */
+void
+gi_marshalling_tests_param_spec_take_param(GParamSpec *param)
+{
+}
 
 enum  {
     DUMMY_PROPERTY,
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 9b88223..aab87a2 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -957,6 +957,7 @@ GError *gi_marshalling_tests_gerror_return(void);
 /* GParamSpec */
 GParamSpec *gi_marshalling_tests_param_spec_return();
 void gi_marshalling_tests_param_spec_out(GParamSpec **param);
+void gi_marshalling_tests_param_spec_take_param(GParamSpec *param);
 
 /* Overrides */
 
