blob: 8d2f658b87cd6e55ea4cf2a0f6d68ce02b20b755 (
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
40
41
42
43
44
45
46
47
48
|
/* { dg-do compile } */
/* { dg-options "-O3" } */
int a, b, c;
struct S
{
int f0;
int f1;
} d;
static int fn2 (struct S);
void fn3 (struct S);
void
fn1 (struct S p)
{
struct S h = { 0, 0 };
fn3 (p);
fn2 (h);
}
int
fn2 (struct S p)
{
struct S j = { 0, 0 };
fn3 (p);
fn2 (j);
return 0;
}
void
fn3 (struct S p)
{
for (; b; a++)
c = p.f0;
fn1 (d);
}
void
fn4 ()
{
for (;;)
{
struct S f = { 0, 0 };
fn1 (f);
}
}
|