summaryrefslogtreecommitdiff
path: root/tests/warn/invalid-allow-none.h
blob: adea755684d80d0f4ee580861c06087d2debe4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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