2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr32230.c
blob7df47e4dc79dc8c79e73d8c5245617baa28403cf
1 /* { dg-do compile } */
3 typedef struct filter_buffer filter_buffer_t;
4 struct filter_buffer
6 char buf[1];
7 };
8 typedef struct sbuf_header sbuf_header_t;
9 struct sbuf_header
11 char buf[1];
13 const_f (filter_buffer_t *buf)
15 float val;
16 int i;
18 for (i = 0; i < 10; i++)
19 ((float*) (&((sbuf_header_t *) (__PTRDIFF_TYPE__)((buf) == (filter_buffer_t *)&(buf)->buf[0]))->buf[0]))[i] = val;