1 /* { dg-do compile } */
2 
3 unsigned int
strlenx(char * s)4 strlenx(char *s)
5 {
6   char *orig_s = s;
7   for (; *s; ++s)
8     ;
9   return s - orig_s;
10 }
11 
12 struct i2c_adapter {
13     char name[48];
14 };
15 
16 struct {
17     int instance;
18     struct i2c_adapter i2c_adap[];
19 } * init_cx18_i2c_cx;
20 
21 const struct i2c_adapter cx18_i2c_adap_template = {""};
22 int init_cx18_i2c___trans_tmp_1;
23 
24 void
init_cx18_i2c()25 init_cx18_i2c()
26 {
27   int i = 0;
28   for (;; i++) {
29       init_cx18_i2c_cx->i2c_adap[i] = cx18_i2c_adap_template;
30       init_cx18_i2c___trans_tmp_1
31 	= strlenx(init_cx18_i2c_cx->i2c_adap[i].name);
32   }
33 }
34