URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 227 |
Rev 816 |
|
|
|
|
#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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.