blob: 2df56692669706eef2f6865b54b4a62e1d26481b (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
// PR debug/44178
// { dg-do compile }
// { dg-options "-funroll-loops -fcompare-debug" { target i?86-*-* x86_64-*-* } }
// { dg-options "-fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } }
struct A
{
A ();
A (const A &) {}
A &operator = (const A &);
};
struct B
{
int u1;
A u2;
int u3;
int i;
};
B f1 (int *);
B f2 (int, int, int, int);
B f3 (B *, B *);
B
f4 (int x, int y, int z)
{
B b1, b2;
for (int i = x; i > 0; i--)
for (int j = y; j > 0; j--)
{
int k;
f1 (&k);
b2 = f2 (i, 0, 0, z);
if (b2.i) return b2;
f3 (&b1, &b2);
}
return b1;
}
|