1 #pragma version(1)
2 #pragma rs java_package_name(foo)
3 
4 rs_allocation globalAlloc;
5 rs_allocation globalAlloc2;
6 
7 struct hasMatrix {
8     rs_matrix3x3 m;
9 } ghm;
10 
11 static void foo() {
12 
13     rs_allocation allocUninit;
14     rs_allocation allocArr[10];
15     allocUninit = globalAlloc;
16     for (int i = 0; i < 10; i++) {
17         allocArr[i] = globalAlloc;
18     }
19 
20     return;
21 }
22 
23 void singleStmt() {
24     struct hasMatrix h = ghm;
25     ghm = h;
26     globalAlloc = globalAlloc2;
27 }
28 
29 int root(void) {
30     foo();
31     return 10;
32 }
33 
34