summaryrefslogtreecommitdiff
path: root/tests/warn/return-gobject.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-02 16:42:15 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-02 16:43:57 -0300
commit64fe43160220f2145e8ce903772251f335e8ca2a (patch)
treee55d4d72847dd32549d130de0ebac9dd0ff6d211 /tests/warn/return-gobject.h
parentbbd1aa9450e54ad57c017f408dae5937dcf074ac (diff)
downloadgobject-introspection-64fe43160220f2145e8ce903772251f335e8ca2a.tar.gz
[tests] Add test infrastructure for warnings
Add an infrastructure for testing warnings, add two examples how to verify warnings
Diffstat (limited to 'tests/warn/return-gobject.h')
-rw-r--r--tests/warn/return-gobject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/warn/return-gobject.h b/tests/warn/return-gobject.h
new file mode 100644
index 00000000..163d50cf
--- /dev/null
+++ b/tests/warn/return-gobject.h
@@ -0,0 +1,5 @@
+#include "common.h"
+
+GObject * test_get_object(void);
+
+// EXPECT:3: Warning: Test: test_get_object: return value: Missing (transfer) annotation