summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr25860.c
blob: 033b567d8dee3959803725b2c955627d05e5f36b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* We used to ICE because PRE would try to PRE the load of *Note from the
   loop. */

struct g
{
  int i;
};
struct f
{
  struct g i;
};
int GSM_RingNoteGetFullDuration(struct g)__attribute__((const));
void savewav(struct f *gg)
{
  struct g *Note;
  long i = 0,j,length=0;
  Note = &gg->i;
  for (j=0;j<GSM_RingNoteGetFullDuration(*Note);j++)
    ;
}