OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-4.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.