blob: e463ec6c194702e045cf0592aa0af6d24daebd79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* PR tree-optimization/105597 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wno-int-conversion" } */
typedef struct {
int allocated;
} vvec;
int vvneeds_want, mgpssort;
void vvinit(vvec *v, int minelems) { v->allocated = -minelems; }
void vvneeds(vvec *v, int needed) {
if (needed > v->allocated)
if (v->allocated < 0)
;
else {
int next = v->allocated + (v->allocated >> 1);
vvneeds_want = next;
}
}
void mgpssort_1() {
vvinit((vvec *) &mgpssort, mgpssort_1);
vvneeds((vvec *) &mgpssort, mgpssort_1);
}
|