[arrayfire] 122/408: Add test for index copy assignment.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 9cbc641934566f3cee24e5c4d4e4f5b2d42c34a6
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date:   Wed Jul 8 21:34:47 2015 +0200

    Add test for index copy assignment.
---
 test/index.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/index.cpp b/test/index.cpp
index 9f23ae5..28b5745 100644
--- a/test/index.cpp
+++ b/test/index.cpp
@@ -1251,3 +1251,13 @@ TEST(Indexing, SNIPPET_indexing_ref)
     //! [ex_indexing_ref]
     //TODO: Confirm the outputs are correct. see #697
 }
+
+TEST(Indexing, SNIPPET_indexing_copy)
+{
+  af::array A = af::constant(0,1, s32);
+  af::index s1;
+  s1 = af::index(A);
+  // At exit both A and s1 will be destroyed
+  // but the underlying array should only be
+  // freed once.
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list