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