diff options
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r-- | tests/scanner/foo.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c index fb20c7a6..f8cc350b 100644 --- a/tests/scanner/foo.c +++ b/tests/scanner/foo.c @@ -782,3 +782,17 @@ foo_object_append_new_stack_layer (FooObject *obj, int x) { return NULL; } + +/** + * foo_not_a_constructor_new: + * + * This should be scanned as a top-level function, and shouldn't cause + * a "Can't find matching type for constructor" warning. + * + * Returns: (transfer none): + */ +FooObject * +foo_not_a_constructor_new (void) +{ + return NULL; +} |