Debian Codegraph @

gcc/testsuite/gcc.dg/debug/debug-4.c

raw
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 } */
4
5 struct A { char *a, *b, *c, *d; };
6
7 static int
8 bar (struct A *x)
9 {
10 return x->c - x->b;
11 }
12
13 void
14 foo (void)
15 {
16 struct A e;
17
18 {
19 int baz (void)
20 {
21 return bar (&e);
22 }
23 }
24 if (e.c - e.a > e.d - e.a)
25 e.c = e.d;
26 }