summaryrefslogtreecommitdiff
path: root/tests/warn/callback-missing-scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/warn/callback-missing-scope.h')
-rw-r--r--tests/warn/callback-missing-scope.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/warn/callback-missing-scope.h b/tests/warn/callback-missing-scope.h
new file mode 100644
index 00000000..7932198e
--- /dev/null
+++ b/tests/warn/callback-missing-scope.h
@@ -0,0 +1,5 @@
+#include "common.h"
+
+void test_callback(GCallback *callback, gpointer user_data);
+
+// EXPECT:3: Warning: Test: test_callback: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async)