Ensure coarrays in calls use a descriptor [PR81265]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20011218-1.c
blob8db5b777089dc143cce32a525dbc6f95d2b79af2
1 /* This testcase failed on Alpha at -O2 because $27 hard register
2 for the indirect call was exposed too early and reload couldn't
3 allocate it for multiplication and division. */
5 /* { dg-require-effective-target indirect_calls } */
7 struct S {
8 int a, b;
9 void (*f) (long, int);
12 void foo (struct S *x)
14 long c = x->a * 50;
15 c /= (long) x->b;
16 c *= (long) x->b;
17 x->f (c, 0);