FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / debug-3.c
blobbb819f4f0225f4525cbca070b571703380b63f7b
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 struct A { char *a, *b, *c, *d; };
7 static int
8 bar (struct A *x)
10 return x->c - x->b;
13 void fnptr (void (*fn) (void));
15 void
16 foo (void)
18 struct A e;
21 void baz (void)
23 bar (&e);
25 fnptr (baz);
28 struct A *f;
30 f = &e;
31 if (f->c - f->a > f->d - f->a)
32 f->c = f->d;