summaryrefslogtreecommitdiff
path: root/tests/warn
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2015-09-27 13:06:49 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2015-09-27 13:06:56 -0500
commit232f3c831260f596e36159112292897962a505b4 (patch)
treebfa8aae73980843ccbb3ddc50ff79193550a4447 /tests/warn
parent5ae7bd58b6266997b61d897ad6562118eeb59210 (diff)
downloadgobject-introspection-232f3c831260f596e36159112292897962a505b4.tar.gz
Revert "scanner: Warn and ignore on incorrect transfer annotations"
It broke at least atk and mutter. This reverts commit 5ae7bd58b6266997b61d897ad6562118eeb59210.
Diffstat (limited to 'tests/warn')
-rw-r--r--tests/warn/invalid-transfer.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/tests/warn/invalid-transfer.h b/tests/warn/invalid-transfer.h
index 054bb768..ec43f2ac 100644
--- a/tests/warn/invalid-transfer.h
+++ b/tests/warn/invalid-transfer.h
@@ -1,36 +1,12 @@
-#include "common.h"
-
-typedef char TestChar;
/**
* test_transfer_invalid:
* @param: (transfer):
* @param2: (transfer invalid):
* @param3: (transfer full foo):
- * @param4: (transfer full):
- * @param5: (transfer full):
- * @param6: (transfer full):
- * @param7: (transfer container):
- * @param8: (transfer floating):
- */
-void test_transfer_invalid(GObject *param, GObject *param2, GObject *param3,
- char param4, TestChar param5, GType param6,
- GObject *param7, GDateTime *param8);
-
-// EXPECT:7: Warning: Test: "transfer" annotation needs one option, none given
-// EXPECT:8: Warning: Test: invalid "transfer" annotation option: "invalid"
-// EXPECT:9: Warning: Test: "transfer" annotation needs one option, 2 given
-// EXPECT:10: Warning: Test: invalid "transfer" annotation: only valid for array, struct, union, boxed, object and interface types
-// EXPECT:11: Warning: Test: invalid "transfer" annotation: only valid for array, struct, union, boxed, object and interface types
-// EXPECT:12: Warning: Test: invalid "transfer" annotation: only valid for array, struct, union, boxed, object and interface types
-// EXPECT:13: Warning: Test: invalid "transfer" annotation: only valid for container types
-// EXPECT:14: Warning: Test: invalid "transfer" annotation: only valid for object and interface types
-
-/**
- * test_transfer_return_invalid:
- *
- * Returns: (transfer full):
*/
-char test_transfer_return_invalid (void);
+void test_transfer_invalid(int param, int param2, int param3);
-// EXPECT:32: Warning: Test: invalid "transfer" annotation: only valid for array, struct, union, boxed, object and interface types
+// EXPECT:4: Warning: Test: "transfer" annotation needs one option, none given
+// EXPECT:5: Warning: Test: invalid "transfer" annotation option: "invalid"
+// EXPECT:6: Warning: Test: "transfer" annotation needs one option, 2 given