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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/* Verify that bb-reorder re-inserts nested scopes properly.  */
/* { dg-do compile } */
/* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */
 
extern void abort (void);
 
struct A { char *a, *b, *c, *d; };
 
static int
bar2 (struct A *x)
{
  int a = x->c - x->b;
  x->c += 26;
  return a;
}
 
void fnptr (int *);
 
void
foo (void)
{
  struct A e;
 
  if (bar2 (&e) < 0)
    abort ();
  {
    int xyzzy;
    fnptr (&xyzzy);
  }
  {
    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.