* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr46856.c
blob2ec5e8baf9ea5ca1e8764fa2a960cd30e790a7fc
1 struct data {
2 int prio;
3 signed char status;
4 };
6 struct base {
7 unsigned _num;
8 struct data vec[10];
9 };
11 static struct data *ix(struct base *base, unsigned i)
13 return &base->vec[i];
16 struct heap {
17 struct base base;
20 struct heap *heap;
22 void increase_insn_priority (int *fld, int amount)
24 if (ix(heap ? &heap->base : 0, *fld)->status > 0)
25 ix(heap ? &heap->base : 0, *fld)->prio += amount;