File: invalid-constructor.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 (18 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "common.h"

/**
 * test_constructor_invalid_return: (constructor)
 *
 */
int test_constructor_invalid_return();

// EXPECT:7: Warning: Test: test_constructor_invalid_return: Constructors must return an instance of their class

/**
 * test_constructor_invalid_return_pointer: (constructor)
 *
 */
GClosure *test_constructor_invalid_return_pointer();

// EXPECT:15: Warning: Test: test_constructor_invalid_return_pointer: Constructors must belong to the same namespace as the class they belong to