summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir29
-rw-r--r--tests/scanner/regress.c10
-rw-r--r--tests/scanner/regress.h3
3 files changed, 42 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 5ba2be8b..d25e41c8 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -2140,6 +2140,18 @@ use it should be.</doc>
</parameter>
</parameters>
</constructor>
+ <method name="_not_a_method"
+ c:identifier="regress_test_boxeds_not_a_method"
+ moved-to="test_boxeds_not_a_method">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <instance-parameter name="boxed" transfer-ownership="none">
+ <type name="TestBoxed" c:type="RegressTestBoxed*"/>
+ </instance-parameter>
+ </parameters>
+ </method>
<method name="copy" c:identifier="regress_test_boxed_copy">
<return-value transfer-ownership="full">
<type name="TestBoxed" c:type="RegressTestBoxed*"/>
@@ -5109,6 +5121,23 @@ libgnome-keyring.</doc>
</parameter>
</parameters>
</function>
+ <function name="test_boxeds_not_a_method"
+ c:identifier="regress_test_boxeds_not_a_method">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="boxed" transfer-ownership="none">
+ <type name="TestBoxed" c:type="RegressTestBoxed*"/>
+ </parameter>
+ </parameters>
+ </function>
+ <function name="test_boxeds_not_a_static"
+ c:identifier="regress_test_boxeds_not_a_static">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ </function>
<function name="test_cairo_context_full_return"
c:identifier="regress_test_cairo_context_full_return">
<return-value transfer-ownership="full">
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 4507bc6c..1bad36e3 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -1872,6 +1872,16 @@ regress_test_boxed_equals (RegressTestBoxed *boxed,
regress_test_simple_boxed_a_equals(&other->nested_a, &boxed->nested_a));
}
+void
+regress_test_boxeds_not_a_method (RegressTestBoxed *boxed)
+{
+}
+
+void
+regress_test_boxeds_not_a_static (void)
+{
+}
+
static void
regress_test_boxed_free (RegressTestBoxed *boxed)
{
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index e6ae1c22..ad2cb1fb 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -426,6 +426,9 @@ RegressTestBoxed *regress_test_boxed_copy (RegressTestBoxed *boxed);
gboolean regress_test_boxed_equals (RegressTestBoxed *boxed,
RegressTestBoxed *other);
+void regress_test_boxeds_not_a_method (RegressTestBoxed *boxed);
+void regress_test_boxeds_not_a_static (void);
+
typedef struct _RegressTestBoxedB RegressTestBoxedB;
struct _RegressTestBoxedB