diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-03 08:54:16 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-07 04:29:15 -0500 |
commit | 7bdc0b75872dcff2e154d05121568de54996a947 (patch) | |
tree | a1b5f0002e9173835f7ac162e05229c62a5bd305 /tests/warn | |
parent | 71bc26058124b2b9f2e283eeb07fae5eb3e52710 (diff) | |
download | gobject-introspection-7bdc0b75872dcff2e154d05121568de54996a947.tar.gz |
transformer: Ensure that types aren't resolved if we can't find them
This ensures that things can't try to reference undefined/invalid types
without emitting warnings, and that users need to include other GIRs at
build time if they want to reference another type.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Diffstat (limited to 'tests/warn')
-rw-r--r-- | tests/warn/invalid-element-type.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/warn/invalid-element-type.h b/tests/warn/invalid-element-type.h index c9ff3040..bcd9123b 100644 --- a/tests/warn/invalid-element-type.h +++ b/tests/warn/invalid-element-type.h @@ -65,6 +65,14 @@ void test_invalid_ptrarray_element_type(GPtrArray *p1, GPtrArray *p2); GList* test_unresolved_element_type(void); +/** + * test_unresolved_value_element_type: + * + * Returns: (element-type GLib.Value) (transfer full): + */ + +GPtrArray* test_unresolved_value_element_type(void); + // EXPECT:5: Warning: Test: element-type annotation takes at least one option, none given // EXPECT:6: Warning: Test: element-type annotation for a list must have exactly one option, not 2 options @@ -78,6 +86,7 @@ GList* test_unresolved_element_type(void); // EXPECT:51: Warning: Test: element-type annotation takes at least one option, none given // EXPECT:52: Warning: Test: invalid (element-type) for a GPtrArray, must be a pointer // EXPECT:63: Warning: Test: test_unresolved_element_type: Unknown type: 'Unresolved' +// EXPECT:71: Warning: Test: test_unresolved_value_element_type: Unknown type: 'GLib.Value' // EXPECT:4: Warning: Test: test_invalid_list_element_type: argument l1: Missing (element-type) annotation // EXPECT:4: Warning: Test: test_invalid_list_element_type: argument l2: Missing (element-type) annotation // EXPECT:50: Warning: Test: test_invalid_ptrarray_element_type: argument p1: Missing (element-type) annotation |