File: invalid-allow-none.h

package info (click to toggle)
gobject-introspection 1.86.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,464 kB
  • sloc: ansic: 562,805; python: 23,750; xml: 16,240; perl: 1,878; yacc: 1,720; sh: 1,139; lex: 513; cpp: 487; makefile: 197; javascript: 15; lisp: 1
file content (14 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (6)
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