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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-4.c] - Rev 701

Go to most recent revision | Compare with Previous | Blame | View Log

/* This testcase failed, because scope containing baz was not emitted
   (doesn't contain any instructions) and DWARF-2 couldn't find baz origin.  */
/* { dg-do compile } */
 
struct A { char *a, *b, *c, *d; };
 
static int
bar (struct A *x)
{
  return x->c - x->b;
}
 
void
foo (void)
{
  struct A e;
 
  {
    int baz (void)
      {
	return bar (&e);
      }
  }
  if (e.c - e.a > e.d - e.a)
    e.c = e.d;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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