summaryrefslogtreecommitdiff
path: root/tests/cppbasic/compute.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-07-29 14:30:02 -0700
committerTim Murray <timmurray@google.com>2013-08-01 14:14:07 -0700
commit89daad6bae798779e57f252e9da4fe4e62337124 (patch)
treec55735f278a67b2fe5b74b42581cbfae9c99846c /tests/cppbasic/compute.cpp
parentdcfaa3c0bf151da7be31463bb3fa4e2b4aea6b8c (diff)
Add basic support for intrinsics. Move sp<> into RScpp.
Change-Id: I74cdee7069a624ded5091d53db3a4b8ce9894033
Diffstat (limited to 'tests/cppbasic/compute.cpp')
-rw-r--r--tests/cppbasic/compute.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp
index 0f7bd187..bc80c7ea 100644
--- a/tests/cppbasic/compute.cpp
+++ b/tests/cppbasic/compute.cpp
@@ -32,7 +32,7 @@ int main(int argc, char** argv)
sp<Allocation> aout = Allocation::createTyped(rs, t);
printf("Allocation %p %p\n", ain.get(), aout.get());
- sp<ScriptC_mono> sc = new ScriptC_mono(rs);
+ ScriptC_mono* sc = new ScriptC_mono(rs);
printf("new script\n");
// We read back the status from the script-side via a "failed" allocation.
@@ -84,21 +84,10 @@ int main(int argc, char** argv)
rs->finish();
failed_alloc->copy1DTo(&failed);
-
- e.clear();
- t.clear();
- kern1_in.clear();
- kern1_out.clear();
}
printf("Deleting stuff\n");
- sc.clear();
- t.clear();
- a1.clear();
- e.clear();
- ain.clear();
- aout.clear();
- // delete rs;
+ delete sc;
printf("Delete OK\n");
if (failed) {