2 20031215-1.c from the execute part of the gcc torture tests.
11 /* PR middle-end/13400 */
12 /* The following test used to fail at run-time with a write to read-only
13 memory, caused by if-conversion converting a conditional write into an
14 unconditional write. */
16 typedef struct {int c
, l
; char ch
[3];} pstr
;
17 const pstr ao
= {2, 2, "OK"};
18 const pstr
* const a
= &ao
;
23 ((char *)a
->ch
)[a
->l
] = 0;
30 ((char *)a
->ch
)[a
->l
] = -1;
37 ((char *)a
->ch
)[a
->l
] = 1;
42 testTortureExecute (void)