Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr105597.c
blobe463ec6c194702e045cf0592aa0af6d24daebd79
1 /* PR tree-optimization/105597 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wno-int-conversion" } */
5 typedef struct {
6 int allocated;
7 } vvec;
9 int vvneeds_want, mgpssort;
11 void vvinit(vvec *v, int minelems) { v->allocated = -minelems; }
13 void vvneeds(vvec *v, int needed) {
14 if (needed > v->allocated)
15 if (v->allocated < 0)
17 else {
18 int next = v->allocated + (v->allocated >> 1);
19 vvneeds_want = next;
23 void mgpssort_1() {
24 vvinit((vvec *) &mgpssort, mgpssort_1);
25 vvneeds((vvec *) &mgpssort, mgpssort_1);