PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr25860.c
blob033b567d8dee3959803725b2c955627d05e5f36b
1 /* We used to ICE because PRE would try to PRE the load of *Note from the
2 loop. */
4 struct g
6 int i;
7 };
8 struct f
10 struct g i;
12 int GSM_RingNoteGetFullDuration(struct g)__attribute__((const));
13 void savewav(struct f *gg)
15 struct g *Note;
16 long i = 0,j,length=0;
17 Note = &gg->i;
18 for (j=0;j<GSM_RingNoteGetFullDuration(*Note);j++)