ira: Scale save/restore costs of callee save registers with block frequency
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / debug-3.c
blobe2b7a4b1803fce3be226e051e9c009d3b89200ff
1 /* This testcase failed, because scope containing baz was deleted
2 (spanned 0 basic blocks) and DWARF-2 couldn't find baz origin. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target trampolines } */
6 struct A { char *a, *b, *c, *d; };
8 static int
9 bar (struct A *x)
11 return x->c - x->b;
14 void fnptr (void (*fn) (void));
16 void
17 foo (void)
19 struct A e;
22 void baz (void)
24 bar (&e);
26 fnptr (baz);
29 struct A *f;
31 f = &e;
32 if (f->c - f->a > f->d - f->a)
33 f->c = f->d;