Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr26565.c
blobd45272df3af3d8081ab611b73e9b443e4d98e2eb
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;