Home | History | Annotate | Download | only in P_struct_matrix
      1 #pragma version(1)
      2 #pragma rs java_package_name(foo)
      3 
      4 struct hasMatrix {
      5     int j;
      6     rs_matrix3x3 m;
      7     int i;
      8 } ghm;
      9 
     10 extern foo(struct hasMatrix*);
     11 
     12 void singleStmt() {
     13     struct hasMatrix h = ghm;
     14 }
     15 
     16 struct new_matrix {
     17     float f[2];
     18 };
     19 
     20 struct new_struct {
     21     struct new_matrix m;
     22     rs_matrix3x3 t;
     23     int i;
     24 } newm;
     25 
     26 void newstmt() {
     27     struct new_struct h = {1.f, 2.f, 3};
     28     struct new_struct h_uninit;
     29     struct new_struct empty_init = {};
     30 }
     31 
     32