OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-6.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* Verify that bb-reorder re-inserts nested scopes properly.  */
2
/* { dg-do compile } */
3
/* { dg-options "-dA" } */
4
/* { dg-final { scan-assembler "xyzzy" } } */
5
 
6
extern void abort (void);
7
 
8
struct A { char *a, *b, *c, *d; };
9
 
10
static int
11
bar2 (struct A *x)
12
{
13
  int a = x->c - x->b;
14
  x->c += 26;
15
  return a;
16
}
17
 
18
void fnptr (int *);
19
 
20
void
21
foo (void)
22
{
23
  struct A e;
24
 
25
  if (bar2 (&e) < 0)
26
    abort ();
27
  {
28
    int xyzzy;
29
    fnptr (&xyzzy);
30
  }
31
  {
32
    struct A *f;
33
 
34
    f = &e;
35
    if (f->c - f->a > f->d - f->a)
36
      f->c = f->d;
37
  }
38
}

powered by: WebSVN 2.1.0

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