blob: 4fe680df0b6fd0b12af2351c1cf7f5f3fd11a5e2 (
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
|
/* Verify that bb-reorder re-inserts nested scopes properly. */
/* { dg-do compile } */
/* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */
extern void abort (void);
struct A { char *a, *b, *c, *d; };
static int
bar2 (struct A *x)
{
int a = x->c - x->b;
x->c += 26;
return a;
}
void fnptr (int *);
void
foo (void)
{
struct A e;
if (bar2 (&e) < 0)
abort ();
{
int xyzzy;
fnptr (&xyzzy);
}
{
struct A *f;
f = &e;
if (f->c - f->a > f->d - f->a)
f->c = f->d;
}
}
|