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/] [return.c] - Diff between revs 24 and 33

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

Rev 24 Rev 33
#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;
}
}
 
 

powered by: WebSVN 2.1.0

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