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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.base/] [async.c] - Diff between revs 107 and 1765

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

Rev 107 Rev 1765
 
 
 
 
#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.