File: invalid-constructor.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 (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