URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 107 |
Rev 1765 |
#include <stdio.h>
|
#include <stdio.h>
|
/* Test "return" command. */
|
/* Test "return" command. */
|
|
|
void func1 ()
|
void func1 ()
|
{
|
{
|
printf("in func1\n");
|
printf("in func1\n");
|
}
|
}
|
|
|
int
|
int
|
func2 ()
|
func2 ()
|
{
|
{
|
return -5;
|
return -5;
|
}
|
}
|
|
|
double
|
double
|
func3 ()
|
func3 ()
|
{
|
{
|
return -5.0;
|
return -5.0;
|
}
|
}
|
|
|
int tmp2;
|
int tmp2;
|
double tmp3;
|
double tmp3;
|
|
|
int main ()
|
int main ()
|
{
|
{
|
#ifdef usestubs
|
#ifdef usestubs
|
set_debug_traps();
|
set_debug_traps();
|
breakpoint();
|
breakpoint();
|
#endif
|
#endif
|
func1 ();
|
func1 ();
|
printf("in main after func1\n");
|
printf("in main after func1\n");
|
tmp2 = func2 ();
|
tmp2 = func2 ();
|
tmp3 = func3 ();
|
tmp3 = func3 ();
|
printf("exiting\n");
|
printf("exiting\n");
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.