File: invalid-method.h

package info (click to toggle)
gobject-introspection 1.32.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,880 kB
  • sloc: ansic: 33,799; sh: 11,293; python: 7,284; yacc: 1,410; makefile: 400; lex: 329; perl: 254; xml: 178
file content (26 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 belong to