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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr36373-9.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* { dg-do run } */
/* { dg-do run } */
 
 
extern void abort (void);
extern void abort (void);
struct Foo {
struct Foo {
    int *p;
    int *p;
} x;
} x;
void __attribute__((noinline))
void __attribute__((noinline))
foo()
foo()
{
{
  *x.p = 0;
  *x.p = 0;
}
}
int main()
int main()
{
{
  int b;
  int b;
  struct Foo g;
  struct Foo g;
  b = 1;
  b = 1;
  g.p = &b;
  g.p = &b;
  x = g;
  x = g;
  foo();
  foo();
  if (b != 0)
  if (b != 0)
    abort ();
    abort ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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