1 /* { dg-do compile } */
2 /* { dg-options "-mfloat-abi=softfp -mthumb -march=armv5t -O2" } */
3 #pragma GCC optimize ("-O2")
4
5 struct itrm {
6 int std_in;
7 int std_out;
8 int sock_in;
9 int sock_out;
10 };
11
12 struct itrm *alloc(void);
13 void queue_event(struct itrm *itrm, unsigned char *data, int len);
14
handle_trm(int std_in,int std_out,int sock_in,int sock_out,int ctl_in,void * init_string,int init_len)15 void handle_trm(int std_in, int std_out, int sock_in, int sock_out, int ctl_in, void *init_string, int init_len)
16 {
17 struct itrm *itrm;
18 struct itrm ev = { 0, 80, 24, 0 };
19 itrm = alloc();
20 itrm->std_in = std_in;
21 itrm->std_out = std_out;
22 itrm->sock_in = sock_in;
23 itrm->sock_out = sock_out;
24 queue_event(itrm, (unsigned char *)&ev, sizeof(struct itrm));
25 }
26