1999-04-16 01:35:26 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
/* Test "return" command. */
|
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
void func1 ()
|
1999-04-16 01:35:26 +00:00
|
|
|
{
|
|
|
|
printf("in func1\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
func2 ()
|
|
|
|
{
|
|
|
|
return -5;
|
|
|
|
}
|
|
|
|
|
|
|
|
double
|
|
|
|
func3 ()
|
|
|
|
{
|
|
|
|
return -5.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int tmp2;
|
|
|
|
double tmp3;
|
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
int main ()
|
1999-04-16 01:35:26 +00:00
|
|
|
{
|
|
|
|
#ifdef usestubs
|
|
|
|
set_debug_traps();
|
|
|
|
breakpoint();
|
|
|
|
#endif
|
|
|
|
func1 ();
|
|
|
|
printf("in main after func1\n");
|
|
|
|
tmp2 = func2 ();
|
|
|
|
tmp3 = func3 ();
|
|
|
|
printf("exiting\n");
|
1999-06-28 16:06:02 +00:00
|
|
|
return 0;
|
1999-04-16 01:35:26 +00:00
|
|
|
}
|