Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / debug / debug-5.c
blob8f26fc47b8b94d3f39bf67184ea882bce4969591
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 } */
5 extern void abort (void);
7 struct A { char *a, *b, *c, *d; };
9 static int
10 bar (struct A *x)
12 return x->c - x->b;
15 static int
16 bar2 (struct A *x)
18 int a = x->c - x->b;
19 x->c += 26;
20 return a;
23 void fnptr (void (*fn) (void));
25 void
26 foo (void)
28 struct A e;
30 if (bar2 (&e) < 0)
31 abort ();
33 void baz (void)
35 bar (&e);
37 fnptr (baz);
40 struct A *f;
42 f = &e;
43 if (f->c - f->a > f->d - f->a)
44 f->c = f->d;