summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-14 23:13:17 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-15 17:59:07 -0300
commit4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9 (patch)
tree7d8f8c2be98e75b5bb31b883a8235cfb3fe82bac /tests
parentac29006d8481b8c8900672cfae834c12712ff2e6 (diff)
downloadgobject-introspection-4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9.tar.gz
Add a warning for unresolved types
Warn when using an annotation which will end up as unresolved. https://bugzilla.gnome.org/show_bug.cgi?id=629004
Diffstat (limited to 'tests')
-rw-r--r--tests/warn/Makefile.am1
-rw-r--r--tests/warn/unresolved-element-type.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/warn/Makefile.am b/tests/warn/Makefile.am
index deece2f3..921ec593 100644
--- a/tests/warn/Makefile.am
+++ b/tests/warn/Makefile.am
@@ -5,6 +5,7 @@ TESTS = \
callback-missing-scope.h \
return-gobject.h \
unknown-parameter.h \
+ unresolved-element-type.h \
unresolved-type.h
EXTRA_DIST = warningtester.py common.h $(TESTS)
diff --git a/tests/warn/unresolved-element-type.h b/tests/warn/unresolved-element-type.h
new file mode 100644
index 00000000..af60a391
--- /dev/null
+++ b/tests/warn/unresolved-element-type.h
@@ -0,0 +1,11 @@
+#include "common.h"
+
+/**
+ * test_unresolved_element_type:
+ *
+ * Returns: (element-type Unresolved) (transfer full):
+ */
+
+GList* test_unresolved_element_type(void);
+
+// EXPECT:9: Warning: Test: test_unresolved_element_type: Unknown type: 'Unresolved'