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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ipa/] [pr50605.C] - Rev 707

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

/* { dg-do compile } */
/* { dg-options "-O3 -fno-early-inlining" } */

class A
{
public:
  int a;
  void *stuff;
};

class B
{
public:
  int b;
  void *other_stuff;
  A array[50];
};

extern B gb;

int process_A (A *a)
{
  return a->a;
}

int process_A_complex (A *a)
{
  return process_A (a+3);
}

int process_B (B *b)
{
  return process_A_complex (&b->array[0]);
}

int foo (void)
{
  return process_B (&gb);
}

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.