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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [gdb/] [testsuite/] [gdb.base/] [async.c] - Diff between revs 24 and 33

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

Rev 24 Rev 33
 
 
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int
int
foo (void)
foo (void)
#else
#else
int
int
foo ()
foo ()
#endif
#endif
{
{
 int x, y;
 int x, y;
 
 
 x = 5;
 x = 5;
 y = 3;
 y = 3;
 
 
 return x + y;
 return x + y;
}
}
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int
int
main (void)
main (void)
#else
#else
int
int
main ()
main ()
#endif
#endif
{
{
 int y, z;
 int y, z;
 
 
 y = 2;
 y = 2;
 z = 9;
 z = 9;
 y = foo ();
 y = foo ();
 z = y;
 z = y;
 y = y + 2;
 y = y + 2;
 y = baz ();
 y = baz ();
 return 0;
 return 0;
}
}
 
 
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int
int
baz (void)
baz (void)
#else
#else
int
int
baz ()
baz ()
#endif
#endif
{
{
  return 5;
  return 5;
}
}
 
 

powered by: WebSVN 2.1.0

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