2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / debug-4.c
blob62e824a548c0c66ffb510a04c6c47e2f92fd7cb7
1 /* This testcase failed, because scope containing baz was not emitted
2 (doesn't contain any instructions) 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
14 foo (void)
16 struct A e;
19 int baz (void)
21 return bar (&e);
24 if (e.c - e.a > e.d - e.a)
25 e.c = e.d;