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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-3.c] - Rev 12

Compare with Previous | Blame | View Log

/* This testcase failed, because scope containing baz was deleted
   (spanned 0 basic blocks) and DWARF-2 couldn't find baz origin.  */
/* { dg-do compile } */
/* { dg-skip-if "trampolines not supported" { "scarts_32-*-*" || "scarts_16-*-*" } { "*" } { "" } } */
 
struct A { char *a, *b, *c, *d; };
 
static int
bar (struct A *x)
{
  return x->c - x->b;
}
 
void fnptr (void (*fn) (void));
 
void
foo (void)
{
  struct A e;
 
  {
    void baz (void)
      {
	bar (&e);
      }
    fnptr (baz);
  }
  {
    struct A *f;
 
    f = &e;
    if (f->c - f->a > f->d - f->a)
      f->c = f->d;
  }
}
 

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.