diff options
Diffstat (limited to 'tests/warn/invalid-allow-none.h')
-rw-r--r-- | tests/warn/invalid-allow-none.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/warn/invalid-allow-none.h b/tests/warn/invalid-allow-none.h new file mode 100644 index 00000000..adea7556 --- /dev/null +++ b/tests/warn/invalid-allow-none.h @@ -0,0 +1,14 @@ +#include "common.h" + +/** + * test_invalid_allow_none: + * @param: (allow-none): + * @param2: (allow-none): + * + * Returns: (allow-none): + */ +int test_invalid_allow_none(int param, GType param2); + +// EXPECT:5: Warning: Test: invalid "allow-none" annotation: only valid for pointer types and out parameters +// EXPECT:6: Warning: Test: invalid "allow-none" annotation: only valid for pointer types and out parameters +// EXPECT:8: Warning: Test: invalid "allow-none" annotation: only valid for pointer types and out parameters |