summaryrefslogtreecommitdiff
path: root/tests/warn/invalid-method.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/warn/invalid-method.h')
-rw-r--r--tests/warn/invalid-method.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/warn/invalid-method.h b/tests/warn/invalid-method.h
new file mode 100644
index 00000000..26d528ac
--- /dev/null
+++ b/tests/warn/invalid-method.h
@@ -0,0 +1,26 @@
+#include "common.h"
+
+/**
+ * test_method_no_parameters: (method)
+ *
+ */
+void test_method_no_parameters();
+
+// EXPECT:7: Warning: Test: test_method_no_parameters: Methods must have parameters
+
+/**
+ * test_method_invalid_first_parameter: (method):
+ *
+ */
+void test_method_invalid_first_parameter(int param);
+
+// EXPECT:15: Warning: Test: test_method_invalid_first_parameter: Methods must have a pointer as their first parameter
+
+/**
+ * test_method_invalid_namespace: (method):
+ *
+ */
+void test_method_invalid_namespace(GClosure *param);
+
+// EXPECT:23: Warning: Test: test_method_invalid_namespace: Methods must belong to the same namespace as the class they are into
+