summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.h
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-07-20 10:47:26 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-07-21 07:41:47 +0200
commitd48fb32d8350abbd421658c733b74aaf44cb89ce (patch)
tree64a1f9f1b152881caab3bb1bce2c16eecf55a12a /tests/scanner/regress.h
parent44aa990e80758ed9ad842fadc19857f26a663105 (diff)
downloadgobject-introspection-d48fb32d8350abbd421658c733b74aaf44cb89ce.tar.gz
regress: Test for property and method with conflicting names
This is something that libraries are not supposed to do, but some do anyway (Soup and Clutter are two examples) and language bindings should handle it somehow or other. In GJS we want to make sure that the way it's handled doesn't change inadvertently, because buggy library code should not break existing user code. https://bugzilla.gnome.org/show_bug.cgi?id=785091
Diffstat (limited to 'tests/scanner/regress.h')
-rw-r--r--tests/scanner/regress.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index f7205f38..d6752a1c 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -771,6 +771,7 @@ struct _RegressTestObj
double some_double;
char* string;
GType gtype;
+ gint name_conflict;
/* < private > */
void (*function_ptr) (void);
@@ -940,6 +941,9 @@ void regress_test_obj_not_nullable_element_typed_gpointer_in (RegressTestObj *ob
gpointer input,
guint count);
+_GI_TEST_EXTERN
+void regress_test_obj_name_conflict (RegressTestObj *obj);
+
/* inheritance */
#define REGRESS_TEST_TYPE_SUB_OBJ (regress_test_sub_obj_get_type ())
#define REGRESS_TEST_SUB_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), REGRESS_TEST_TYPE_SUB_OBJ, RegressTestSubObj))