1*1f5207b7SJohn Levon struct st { 2*1f5207b7SJohn Levon int i, *d; 3*1f5207b7SJohn Levon }; 4*1f5207b7SJohn Levon load_i(struct st * st)5*1f5207b7SJohn Levonstatic int load_i(struct st *st) 6*1f5207b7SJohn Levon { 7*1f5207b7SJohn Levon return st->i; 8*1f5207b7SJohn Levon } 9*1f5207b7SJohn Levon store_i(struct st * st,int i)10*1f5207b7SJohn Levonstatic void store_i(struct st *st, int i) 11*1f5207b7SJohn Levon { 12*1f5207b7SJohn Levon st->i = i; 13*1f5207b7SJohn Levon } 14*1f5207b7SJohn Levon load_d(struct st * st)15*1f5207b7SJohn Levonstatic int *load_d(struct st *st) 16*1f5207b7SJohn Levon { 17*1f5207b7SJohn Levon return st->d; 18*1f5207b7SJohn Levon } 19*1f5207b7SJohn Levon store_d(struct st * st,int * d)20*1f5207b7SJohn Levonstatic void store_d(struct st *st, int *d) 21*1f5207b7SJohn Levon { 22*1f5207b7SJohn Levon st->d = d; 23*1f5207b7SJohn Levon } 24*1f5207b7SJohn Levon 25*1f5207b7SJohn Levon /* 26*1f5207b7SJohn Levon * check-name: struct access code generation 27*1f5207b7SJohn Levon * check-command: sparsec -c $file -o tmp.o 28*1f5207b7SJohn Levon */ 29