summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-05-25 11:44:33 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-05-25 21:02:37 +0200
commit258045766f78ee1cff94c75f508ba683ebc47e7f (patch)
tree2bc77380226027cbc75f58b6cf1368552210e991 /tests
parentb573b9b623281c7ef4d120da1d512fb2b802732d (diff)
downloadvala-258045766f78ee1cff94c75f508ba683ebc47e7f.tar.gz
Always set value_owned to false for pointers
Fixes bug 650993.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/basic-types/bug650993.vala7
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();
+}