1 /* { dg-do compile } */ 2 3 void *a, *b; 4 struct pt3_i2cbuf { 5 int num_cmds; 6 } c; 7 void *memcpy(void *, void *, __SIZE_TYPE__); 8 void put_stop(); translate(struct pt3_i2cbuf * p1,int p2)9void translate(struct pt3_i2cbuf *p1, int p2) 10 { 11 p1->num_cmds = 0; 12 if (p2) 13 put_stop(); 14 } pt3_i2c_master_xfer(int p1)15void pt3_i2c_master_xfer(int p1) 16 { 17 translate(&c, p1); 18 memcpy(a, b, c.num_cmds); 19 for (; p1;) 20 ; 21 } 22