Home | History | Annotate | Download | only in P_refcount
      1 #pragma version(1)
      2 #pragma rs java_package_name(foo)
      3 
      4 rs_font globalAlloc;
      5 rs_font globalAlloc2;
      6 
      7 struct hasMatrix {
      8     rs_matrix3x3 m;
      9 } ghm;
     10 
     11 static void foo() {
     12 
     13     rs_font fontUninit;
     14     rs_font fontArr[10];
     15     fontUninit = globalAlloc;
     16     for (int i = 0; i < 10; i++) {
     17         fontArr[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