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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [nestfunc-7.c] - Rev 826

Compare with Previous | Blame | View Log

struct A
{
  int one;
  int two;
  int three;
  int four;
  int five;
  int six;
};
 
static int test (void)
{
  int base;
 
  struct A Foo (void)
    {
      struct A a;
 
      a.one = base + 1;
      a.two = base + 2;
      a.three = base + 3;
      a.four = base + 4;
      a.five = base + 5;
      a.six = base + 6;
 
      return a;
    }
 
  base = 10;
  struct A a = Foo ();
 
  return (a.one == 11
	  && a.two == 12
	  && a.three == 13
	  && a.four == 14
	  && a.five == 15
	  && a.six == 16);
}
 
int main (void)
{
  return !test ();
}
 
 

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.