diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-05-25 11:44:33 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-05-25 21:02:37 +0200 |
commit | 258045766f78ee1cff94c75f508ba683ebc47e7f (patch) | |
tree | 2bc77380226027cbc75f58b6cf1368552210e991 /tests | |
parent | b573b9b623281c7ef4d120da1d512fb2b802732d (diff) | |
download | vala-258045766f78ee1cff94c75f508ba683ebc47e7f.tar.gz |
Always set value_owned to false for pointers
Fixes bug 650993.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/basic-types/bug650993.vala | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 013585efe..422571e0d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -25,6 +25,7 @@ TESTS = \ basic-types/bug596637.vala \ basic-types/bug596785.vala \ basic-types/bug632322.vala \ + basic-types/bug650993.vala \ namespaces.vala \ methods/lambda.vala \ methods/closures.vala \ diff --git a/tests/basic-types/bug650993.vala b/tests/basic-types/bug650993.vala new file mode 100644 index 000000000..db47e9d63 --- /dev/null +++ b/tests/basic-types/bug650993.vala @@ -0,0 +1,7 @@ +void *test () { + return null; +} + +void main () { + unowned int[] o = (int[]) test(); +} |