1 /* PR middle-end/13400 */
2 /* The following test used to fail at run-time with a write to read-only
3 memory, caused by if-conversion converting a conditional write into an
4 unconditional write. */
6 typedef struct {int c
, l
; char ch
[3];} pstr
;
7 const pstr ao
= {2, 2, "OK"};
8 const pstr
* const a
= &ao
;
13 ((char *)a
->ch
)[a
->l
] = 0;
20 ((char *)a
->ch
)[a
->l
] = -1;
27 ((char *)a
->ch
)[a
->l
] = 1;