MAINTAINERS: Change my contact email in MAINTAINERS file.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr26565.c
blob12332d4f6edfaf4bc7219e0ccef15c09ba4ec02b
1 /* { dg-do run } */
2 /* m32c is already packed. */
3 /* { dg-skip-if "" { "m32c-*-*" } } */
5 void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
7 struct timeval {
8 long tv_sec;
9 };
11 struct outdata {
12 long align;
13 char seq;
14 struct timeval tv __attribute__((packed)); /* { dg-warning "attribute ignored" "" { target default_packed } } */
17 void send_probe(struct outdata *outdata, struct timeval *tp) __attribute__((noinline));
18 void send_probe(struct outdata *outdata, struct timeval *tp)
20 memcpy(&outdata->tv, tp, sizeof outdata->tv);
23 struct timeval t;
24 struct outdata outdata;
26 int main()
28 send_probe(&outdata, &t);
29 return 0;