1 // -target-api 0 2 #pragma version(1) 3 #pragma rs java_package_name(com.example.foo) 4 5 void oldFoo(const int* a, int *b) { 6 *b = *a; 7 } 8 9 int RS_KERNEL foo(int a) { 10 return a; 11 } 12 13 void testStart(rs_allocation in, rs_allocation out) { 14 rsForEach(foo, in, out); 15 } 16