diff options
Diffstat (limited to 'tests/cppbasic/compute.cpp')
| -rw-r--r-- | tests/cppbasic/compute.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp index d1647c41..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, NULL, 0); + ScriptC_mono* sc = new ScriptC_mono(rs); printf("new script\n"); // We read back the status from the script-side via a "failed" allocation. @@ -66,8 +66,8 @@ int main(int argc, char** argv) { sp<const Element> e = Element::I32(rs); Type::Builder tb(rs, e); - tb.setX(5); - tb.setY(5); + tb.setX(8); + tb.setY(8); sp<const Type> t = tb.create(); sp<Allocation> kern1_in = Allocation::createTyped(rs, t); sp<Allocation> kern1_out = Allocation::createTyped(rs, t); @@ -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) { |
